Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Robocopy ERROR 5 (0x00000005) and Corrupted User Permissions

09 Nov 2015   #1
zapp7

Windows 7 Ultimate 64 bit
 
 
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 System SpecsSystem Spec
.
09 Nov 2015   #2
zapp7

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 System SpecsSystem Spec
Reply

 Robocopy ERROR 5 (0x00000005) and Corrupted User Permissions




Thread Tools




Similar help and support threads
Thread Forum
Restoring permissions on fixed corrupted profile?
I'm going to try restoring a corrupted profile by copying files from the corrupted one to a new profile. I have the following questions: 1. Microsoft's "Fix A Corrupted User Profile" page advises not to copy ntuser.dat, ntuser.dat.log, and ntuser.ini. My corrupted profile has quite a few...
General Discussion
Help with Robocopy user backups?
I provide IT support for a small business with about 5 users each with their own computer. Their last IT guy setup Retrospect backup backing up the user folder to the server and then CrashPlan Pro was installed on the server to backup to their cloud service (because they let you backup an unlimited...
Backup and Restore
Cannot copy user data to new user folder (after profile corrupted )
My user profile became corrupted after years of problem-free usage (no clue why), so now I always end up in a temporary account after a reboot. As per Microsoft's instructions I found here Fix a corrupted user profile - Windows Help, I 1. created a new account 2. logged out and logged in...
General Discussion
Robocopy Backup - ERROR 5 (0x00000005)
Hi, I'm wondering if anyone might be able to shed some light on why I am getting the following such errors when running a robocopy batch file (as administrator) which cause the backup script to stall (- albeit temporarily): I am using the following backup command: robocopy "%srcPath%\My...
Backup and Restore
Preparing Your Desktop User profile corrupted, TEMP User
Hi! I'm using a Neo netbook, running Windows Ultimate 32-bit. I found out that my user profile got corrupted after a forced shut down (the battery doesn't work and the power went out causing it to shut down). The Welcome screen goes on for minutes, then "Preparing Your Desktop" appears and when it...
General Discussion


Our Sites

Site Links

About Us

Find 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 10:21.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App