(Windows) Copy Directories and retain all timestamp and security information

I found a need to move a directory on a file server which served our Domain Users homefolder share. File  permissions were required to stay exactly the same, so using Windows Explorer was out of the question, since that modifies folder attributes… so i decided to use robocopy:

robocopy /MIR /DCOPY:T /COPY:DATSOU <source> <destination>

yep, that did the trick, i think.

Note: this may require elevated privileges.

Did you like this? Share it:
This entry was posted in Tips and tricks. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *