Maintaining permissions during filecopy
There are times when you copy files and folders and need the ability to maintain permissions. This can either be done because you are redoing partitioning, server migration or performing a drive expansion. There are many tools out there such as rich copy and beyond compare. What we have noticed is that there are issues on granular subfolders if permissions are complicated and some inheritance is disabled five or six levels deep. Robocopy is a great utility to use for this task, while it is an old school application it simply works.
Below is a company that works very well:
Start cmd as administrator
robocopy [source location] [destination location] /E /ZB /DCOPY:T /COPYALL /R:2 /W:1 /V /TEE /LOG:rlogs.log
to find out what all the switches do simply execute
Keep in mind that this is only for file based permissions. Depending on how you have setup your share permissions you may need to do other things.