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: Cannot Replace Owner with icacls!

24 Jun 2010   #1

XP, Vista, W7, all flavors
Cannot Replace Owner with icacls!

I am trying to access/move files on a drive pulled from an old XP machine that failed.

The drive is connected to a W7 machine via an external USB case.

When I use explorer to access the properties for A SINGLE FILE, the owner is shown as an unknown GUID (I expect this). Using this interface, I can change the owner, but only using the GUI, and only one user at a time.

After I set the owner through the GUI, I can use icacls to change the permissions.

BUT I cannot use the GUI to set the owner for more than one item at a time. If I try to set the permissions for the directory and apply them recursively, the folder gets updated, but the files in it error.

icacls reports a failure when I use setowner to change the owner on any file (yes, I am running in an admin CMD window). So "icacls *.* /setowner NAME" fails (access is denied).

There are probably thousands of files here. What can be done?

My System SpecsSystem Spec
24 Jun 2010   #2

Windows 7

So if you go to a folder and change the owner to the local administrators group and check the box for sub containers and objects it does not propagate down to the files?
My System SpecsSystem Spec
24 Jun 2010   #3

XP, Vista, W7, all flavors

So if you go to a folder and change the owner to the local administrators group and check the box for sub containers and objects it does not propagate down to the files?
Correct. The operation works on the folder, but you get repeated "access is denied" messages for any files in that folder (and possibly subfolders, I did not wait around for it).

It's as if the only way to change the owner on files that have an unknown Owner GUID is to individually select them and set the owner. I cannot even select two of them at a time, as the "security" tab goes missing.

I did just find a tool called "takeown.exe" that works. But it's annoying that icalcs does not work.
My System SpecsSystem Spec


 Cannot Replace Owner with icacls!

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
New owner but cannot remove previous owner as administrator
I recently bought an Acer AX3810 with Vista 7 Home Premium 64 bit from the widow of my neighbor. I had transferred all his personal files and copied all the photographs to an external hard drive for her then deleted all the files using "Eraser". I cannot seem to be able to delete the previous...
General Discussion
icacls to reset everything(sec/owner/premision) to admin.
icacls C:\ /grant administrators:F /T /C So would this set folders permissions and junk so the wandering folders permissions,ect get fixed. Is there anyway you can just turn off security/permissions,ect so you will not get owner/permissions issues anymore? Yes I did turned off UAC since...
System Security
Are changes permanent using takeown/icacls?
As the title states, are changes permanent using takeown or icacls? Does it weaken windows security? I'm asking because sometimes, when I make a "lite" version of 7, I need to remove several files that require ownership. Instead of just applying onwership to those files only, I usually end up...
General Discussion
icacls trustedinstaller fails
icacls cannot set any parameters for trustedinstaller Running command prompt as administrator Works fine with any other user e.g. icacls \temp\new_directory /t /grant trustinstaller:f trustinstaller: No mapping between account names and securi Successfully processed 0 files; Failed...
Icacls, syntax question.
I want to give interactive user folder permissions, with icacls. But I can´t find the correct syntax for the interactive user. e.g. icacls folder1 /grant user1:(M) ---> Works very well. User1 gets modify rights to the folder "folder1". Now I want to give interactive user the same modify...
General Discussion
ICACLS and Printing with WIN 7 ??
A while back by dad called me saying that he could not print on his computer. What I found was that he could print fine out of applications like WORD, etc, but he couldn’t print web pages or web based email in Internet Explorer. He is running a fairly new Dell that I upgraded from Vista to...
Performance & Maintenance

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 14:44.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App