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 Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Robocopy - Access denied Error 5 Real Directory
Hello folks, I know similar questions have been asked but I "might" have a unique one. What I have been trying to do is to copy the "C:\Users", "C:\Program Files", & "C:\Program Files (x86)" to another clean hard drive "D:\". I'm doing this to make more room for the OS in the C: drive while...
Backup and Restore
Corrupted CD, getting an error as corrupted or missing files
Hi All I bought a new windows 7 home basic edition. I tried installing windows 7 on my laptop after formatting the disk. During the 2nd step of installation Install windows ->Expanding windows it says files may be corrupted please ensure all the files exist before installation. Please help, I...
General Discussion
User Permissions Standard user
Hey, I just wanted to know whether its possible for a standard user to be abe to install programs/apps on their account. Basically im the admin and have a password on my account. I want to create another user for everyone to use and allow them to install programs, however i dont want them to be...
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 06:08.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App