Hi,
Robocopy will not copy share permissions.
To copy share permissions, please check the following steps:
- On your old server, open Registry Editor.
HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>LanmanServer>Shares
Right-click the Shares key and select “Export” it to a file and then copy the file you exported from the old server to the new server. - Go to your new server and right-click the registry file and select “Merge”. All the share information will be imported to your new server. If the new server uses the same drive letter, then just restart the server.
- If the new server uses a different drive letter compared to the old server, you need to open Registry Editor:
HKEY_LOCAL_MACHINE>SYSTEM>CurrentControlSet>Services>LanmanServer>Shares
Double click the share and then locate the section labelled “path” and change the drive letter to the one of your new file server.
(You will need to do this for each share that needs a change of drive location. Once completed, please restart the server again.)
Note: the new server has to be essentially identical to the old in terms of where the files are and what partitions they live on.
Here is a guide of robocopy cmd for you to check:
https://adamtheautomator.com/robocopy-the-ultimate/#Common_Robocopy_Syntax_Reference
Thanks for your time!
Best Regards,
Mico Mi
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.