I am trying to copy over a file share (called groups) from a 2008 r2 server to another server 2012 and robocopy (see command below) works well for it and copies over everything and maintains the NTFS permissions. However, when I try to share the root folder out again it resets all the ntfs permissions on all the folders again. How can I do the copying of the share (without unsharing it first at the course as it is a live folder) and then share it on another server with the same name without losing the original ntfs group permissions for all the folders in it?
robocopy "\\tghfs1\e$\groups" "d:\groups" /TEE /LOG+:c:\robolog.txt /MIR /copyall /zb /w:1 /r:2 /E
(executed on the new server - so copying from tghfs1)