Is there a way to Bring over Folder Share permissions with Robocopy?

BBrayton
BBrayton used Ask the Experts™
on
I'm going to migrate SBS2011 to server 2016.
I'm testing Robocopy to migrate share folders to the new server.
I tested on one of the shares and it brings over everything with NTFS permissions.
The only issue I have is I have to re-share the folder. Doesn't Robocopy Bring the share Permissions also?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Technology and Business Process Advisor
Most Valuable Expert 2013
Commented:
No, share permissions are stored in the registry not the file system.  If the share is on the same drive, you can export the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares from the source server and import it into the new server.  You can also edit the exported file (it's text based), but you should be careful doing so.

Of course, I'd ask why you're using complicated share permissions - NTFS permissions are more granular and I would generally just recommend using NTFS permissions and very basic share permissions that would likely be faster to simply recreate.

Author

Commented:
Ya I don't want to mess with the registry. Better to just re-share the folder after it moves to the new server.

Robocopy brings the existing NTFS permissions over which is good because there are a lot of shared folders and not everyone has access to all of them.
Lee W, MVPTechnology and Business Process Advisor
Most Valuable Expert 2013

Commented:
If your shares are all on D: (for example) and you're moving them to a new server, also all on D:, the exporting of the registry is generally simple and painless.  It's when you're shares are in completely different locations (different drives, subfolders) that it becomes a mess to impossible.

Author

Commented:
It is going from E: to E:  So I will try the Registry then.

Thanks!! I will let you know how it works

Author

Commented:
Thanks lee you Da MAN!!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial