I had to kill an old File Server in Windows Server 2000 but needed to copy all the shares to the new NAS.
I use robocopy for the copying itself but i got to the problem about permissions on the user. I needed to keep all other permissions and add myself to them.
I FOUND A GREAT PROGRAM! ——-> SetACL
This allowed me to put myself with self control in every folder and file specifying only the root dir!
The program is much more than this, so check all the examples HERE.
My Commands:
robocopy.exe sourcedir destinationdir /R:0 /W:0 /MIR /COPYALL /LOG:c:\admin\robocopy.log
NOTE: The robocopy comes with Windows.
SetACL -on h:\Example(rootdir) -ot file -actn ace -ace n:domain\user;p:full
This worked like a charm!
Very good program! Use it!
Tags: CMD, Power Shell, Windows, Windows Server