Share via


Robocopy Error 5 (0x00000005) Accessing Destination Directory Access Denied

Question

Friday, April 24, 2015 12:48 PM

Hi everyone.  I've read a lot of posts about Error 5 but all the recommendations haven't worked.  When I run the initial robocopy it works fine, however when I run the same script again the next time, it fails with Error 5 access denied.  I did notice that the use I am using shows permissions in the parent folder as Special Permissions to This Folder Only.  Anyone have any ideas?  I'm using version 6.1.7601 that was downloaded from this site: http://support.microsoft.com/kb/2639043 and the command line: robocopy SOURCE TARGET /MIR /copy:DATSO /B /FFT /R:1 /W:1 /LOG:c:\robocopy\log1.txt 

All replies (1)

Tuesday, April 28, 2015 7:37 AM âś…Answered | 1 vote

Hi,

Please install the hotfix in the KB article below to resolve the issue.

"Robocopy /B" does not copy the security information such as ACL in Windows 7 and in Windows Server 2008 R2
https://support.microsoft.com/en-us/kb/979808/

You could also refer to the thread below to troubleshoot the issue.

Robocopy Error 5
https://social.technet.microsoft.com/Forums/windowsserver/en-US/fcac089c-f2e5-4b2d-9e4f-ec637f8ead52/robocopy-error-5?forum=winservergen

Best Regards,

Mandy

Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected].