How to Resolve Robocopy Permission Issues When Migrating Windows Servers?

September 2, 2025 1 answer
Asked by hallway echo
I'm in the process of migrating from Windows Server 2012 R2 to 2019, both running as virtual machines, and I need to ensure that I retain all file permissions during the migration. When I run my robocopy command as User1, it works perfectly fine. However, I encounter an "Error 5: access denied" when I attempt to run the same command using User2. The command I'm using on serverB is: robocopy \\serverA\Disk$\Folder Disk\Folder /e /copy:dats /r:1 /w:1 /xo /np /ndl /nfl /log:C:\temp\log.txt. It's worth noting that both users are part of the Administrators group on both servers, and the owner of the Disk is also the Administrators group.

Answers

3rd shelf left
In NTFS, just being in the Administrators group doesn't guarantee full permissions on everything. It sounds like User2 might not have "Full Control" permissions on the destination folder, which is crucial for modifying permissions. You should check the security settings of the folder and ensure that it includes "Full Control" for User2.

~room to revise: But if the Administrators group has Full Control, shouldn't that be enough? Is there a method to allow all admins to have Full Control without individually adjusting permissions on NTFS?

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions