Robocopy ERROR 5 (0x00000005) and Corrupted User Permissions

zapp7

New member
Local time
6:11 AM
Messages
4
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:

Capture.JPG


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 My Computer

OS
Windows 7 Ultimate 64 bit
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 My Computer

OS
Windows 7 Ultimate 64 bit
Back
Top