Robocopy ERROR 5 (0x00000005) and Corrupted User Permissions


  1. Posts : 4
    Windows 7 Ultimate 64 bit
       #1

    Robocopy ERROR 5 (0x00000005) and Corrupted User Permissions


    I'm trying to robocopy a large folder from the command line (run as Administrator) and on certain files I get an error 5 "Access Denied." Looking at the files' security reveals that the only user with access is a garbled, nonsensical user name as seen here:



    I tried using the takeown command to take ownership from the command line but this had no effect. I tried deleting this user but it tells me that the permissions are inherited (even though the folder in which the file exists does not have this garbled user) Is there another command I can use to fix this? I have several hundred files in this folder with the same problem.
      My Computer


  2. Posts : 4
    Windows 7 Ultimate 64 bit
    Thread Starter
       #2

    I figured out the solution. I ran these commands on the directories:

    Code:
    takeown.exe /F * /A /R /D Y
    icacls.exe * /grant Everyone:(F) /grant Guests:(F) /grant Users:(F) /T /C /Q
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 17:35.
Find Us