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: Take / Assign Ownership of file / folder

23 Feb 2010   #1
karlsnooks

MS Windows 7 Ultimate SP1 64-bit
 
 
Take / Assign Ownership of file / folder

Brink has written an excellent tutorial on this, however, for those of you who prefer to "roll your own":

Take Ownership of file - Vista Forums


Taking Ownership of Files and Folders
As an administrator you can take ownership of a file or folder as follows:
1. In Windows Explorer, rt-click on "properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab| click Edit
4. In the Change Owner To list, select the new owner. To take ownership of all subfolders and files within the folder, select Replace Owner On Subcontainers And Objects option.
5. OK | OK

Assigning Ownership
As administrator or the current owner, you can assign ownership to another user or group as follows:
1. In Windows Explorer, rt-click on "Properties" for the file or folder.
2. Security tab | Advanced
3. Owner tab | Edit
4. Click Other Users Or Groups
5. Type the name of a user or a group | click Check Names | Choose the name you want if its not already filled in | OK
6. From the Change Owner list, select the new owner. For a folder, select Replace Owner On Subcontainers and Objects to assign ownership of all subfolders and files within the folder.
7. Ok | OK

karl


My System SpecsSystem Spec
.

24 Feb 2010   #2
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Thank you for providing the above information. However, I keep seeing people on this forum saying they want to be the BOSS I want full control without understanding what they are doing and want to take ownership of every file and remove all others.....then 30 minutes later they are asking why their machine is crashing why it is doing weird stuff why this is not working, why they cannot install or uninstall software. Holy Cow you just took ownership of everything and the system has no access!!! Duh! You can’t uninstall or re-install or anything.

If you (anyone) really want to take ownership of every file on the machine spend the time reading "Windows 7 Resource Kit" and "Windows 7 Inside Out" cover to cover twice and then do some research on the internet for several months. This way you can be absolutely sure you know what you are doing.

I would add a disclaimer to your tutorial.

:: WARNING! Making these changes without completely understand the full effects; can or will result in requiring a complete clean reinstall of your operating system (i.e. Windows 7).
My System SpecsSystem Spec
19 Mar 2010   #3
Raargh

Windows 7 Pro x64 (dual-booting XPSP3 and Win7)
 
 

Ok, I understand the warning. I wish I had the time to read all that fun stuff. Seriously, I really do. But I don't. I'm a network admin, author and Web Developer, I need to use Windows 7, not study it. I just want to do one little thing, that was trivial in WinNT, Win2k, WinXP .... but seems to be nearly impossible and/or dangerous in Win7 ....

I'm just trying to fix the horrible harsh white explorer window backgrounds so that I can join the rest of the world who uses Aero without blinding myself. Is this too much to ask? I don't want to break my system. I just want it to not blind me when I'm using an Aero theme.

Through much reading and research I have learned that I need to muck with aero.msstyles. Have created a modified version that hopefully has subdued grey backgrounds like I enjoy with Classic theme. Have saved the original aero.msstyles in several places, also on thumb drive. I *think* I need to delete it and rename my modified version, then logout and back in. But, even though I have Taken Ownership of the darn thing, I still can't delete it.
-aero.msstylesclassicisniceandgrey.jpg
Name:  CantDeleteEvenThoughIamtheBOSS.JPG
Views: 37
Size:  27.8 KB

Any help much appreciated. Been working on this for months, off and on.

Thanks,

$teve


My System SpecsSystem Spec
.


19 Mar 2010   #4
Johnson

XP Pro and Windows7 32 bit
 
 

Quote   Quote: Originally Posted by Raargh View Post
I'm just trying to fix the horrible harsh white explorer window backgrounds so that I can join the rest of the world who uses Aero without blinding myself
Hello Steve,

Try this little program:

F.lux: software to make your life better

The lighting is adustable and works quite well for me.
My System SpecsSystem Spec
19 Mar 2010   #5
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Note: This will delete the file and there is NO quick recovery if you type the wrong file name in, so please be extremely careful. Create a restore point if you want to have a backup.

Open an elevated Command Prompt and type:

Code:
 
c:
cd c:\windows\resources\themes\aero
takeown /F aero.msstyles /R /A
attrib -r -s -h aero.msstyles 
del aero.msstyles /q
My System SpecsSystem Spec
19 Mar 2010   #6
OldBloke

Windows 7
 
 

that might work if you first change to the right folder

CD \windows\resources\themes

and also spell it aero.msstyles not areo.msstyles
My System SpecsSystem Spec
19 Mar 2010   #7
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Quote   Quote: Originally Posted by OldBloke View Post
that might work if you first change to the right folder

CD \windows\resources\themes

and also spell it aero.msstyles not areo.msstyles
Good catch...I fixed it.
My System SpecsSystem Spec
20 Mar 2010   #8
Raargh

Windows 7 Pro x64 (dual-booting XPSP3 and Win7)
 
 

Thanks WindowsStar and OldBloke. I appreciate the details; prefer command prompts when they facilitate things.

Still having problems, though. The errors I get via cmd prompt are the equivalent of what I'm getting via GUI efforts. Dir /Q shows I'm already the owner, having taken ownership last night via GUI. It is as if something is locking the file. I'm using a Classic theme during all of this. Wondering if Win7 is using aero.msstyles while I'm trying to work with it?

Code:
C:\Windows\Resources\Themes>dir
 Volume in drive C is WIN7
 Volume Serial Number is 38E3-D77A

 Directory of C:\Windows\Resources\Themes

07/14/2009  01:45 AM    <DIR>          .
07/14/2009  01:45 AM    <DIR>          ..
03/19/2010  08:29 PM    <DIR>          Aero
06/10/2009  02:57 PM             1,897 aero.theme
06/10/2009  02:57 PM             2,376 architecture.theme
06/10/2009  02:57 PM             2,366 characters.theme
06/10/2009  02:57 PM             2,360 landscapes.theme
06/10/2009  02:57 PM             2,319 nature.theme
06/10/2009  02:57 PM             2,326 scenes.theme
               6 File(s)         13,644 bytes
               3 Dir(s)  414,666,899,456 bytes free

C:\Windows\Resources\Themes>cd Aero

C:\Windows\Resources\Themes\Aero>dir *.* /Q
 Volume in drive C is WIN7
 Volume Serial Number is 38E3-D77A

 Directory of C:\Windows\Resources\Themes\Aero

03/19/2010  08:29 PM    <DIR>          NT SERVICE\TrustedInsta.
03/19/2010  08:29 PM    <DIR>          NT SERVICE\TrustedInsta..
07/13/2009  05:54 PM         1,187,984 BUILTIN\Administrators aero-orig.msstyles

07/13/2009  05:54 PM         1,187,984 BUILTIN\Administrators aero-origWithAdmin
Ownership.msstyles
07/13/2009  05:54 PM         1,187,984 T3400-win7\steve       aero.msstyles
03/19/2010  07:52 PM         1,186,960 BUILTIN\Administrators aero1.msstyles
07/13/2009  11:37 PM    <DIR>          NT SERVICE\TrustedInstaen-US
03/19/2010  07:29 PM           216,816 BUILTIN\Administrators NORMALmoddedStc.re
s
03/19/2010  06:47 PM           216,816 BUILTIN\Administrators NORMALstc.res
07/13/2009  11:32 PM    <DIR>          NT SERVICE\TrustedInstaShell
               6 File(s)      5,184,544 bytes
               4 Dir(s)  414,667,075,584 bytes free

C:\Windows\Resources\Themes\Aero>takeown /F aero.msstyles

SUCCESS: The file (or folder): "C:\Windows\Resources\Themes\Aero\aero.msstyles"
now owned by user "T3400-win7\steve".

C:\Windows\Resources\Themes\Aero>attrib -r -s -h aero.msstyles
Access denied - C:\Windows\Resources\Themes\Aero\aero.msstyles

C:\Windows\Resources\Themes\Aero>ren aero.msstyles aero-origAfterTakeOwn.msstyle
s
Access is denied.
My System SpecsSystem Spec
20 Mar 2010   #9
Ztruker

Windows 8 Core X64
 
 

What happens if you boot to Safe Mode then do the rename or delete?
My System SpecsSystem Spec
21 Mar 2010   #10
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

@Raargh, I think the problem may be because the Shell is still running. Close all applications, Open your Command Prompt as Admin, then Open Task Manager and end all explorer.exe. Then run the above commands to delete/edit/replace the file. Once that is done type explorer.exe in the Command Prompt Window to re-start the shell. Or better yet reboot, with shutdown -r -f -t 0.
My System SpecsSystem Spec
Reply

 Take / Assign Ownership of file / folder




Thread Tools





Similar help and support threads
Thread Forum
I can't re assign file associations
I've got my regular admin user account and want to assign a program to a file say ".mobi" to a e-reader. clicking the program brings up the dialog to choose a program. when I choose a program (using browse), the programs not added to the list and the file remains attached to "Windows...
General Discussion
How to take complete ownership of a hdd or folder
I tried the help but it is too confusing. For example I want to remove any sharing of a folder or hdd in my system (if such share policy exists). And I want to know how to take complete ownership and be the sole owner for a hdd. When I right-click the hdd for exmaple F: and go to the...
Network & Sharing
How to really, really re-assign file extensions to new application?
At first an important request: Please read my problem carefully. The solution is not as easy at it seems to be at the first glance! Since WinXP I have a problem when I want to re-assign a file extension to another application (=the program which should be used when double clicking on a certain...
General Discussion
Taking ownership of System folder
Hi folks, I was wondering would anyone be able to help me. I am trying to copy a file to my windows system folder. I have already taken ownership of the folder and given myself full control. I even successfully copied a file to the folder a few days ago but now when I go to copy a file...
General Discussion
Windows 7 Folder Ownership
Hi All, I supplied a friend a new PC with Windows 7 installed. I also supplied Acronis True Image Home 2010 for backup purposes. I wanted to test the backups so I took an image of the system (using Acronis) and saved it to my USB hard drive. I plugged it into my Windows 7 PC which I also run...
General Discussion
Ide folder created on xp - ownership issue on 7
Hi, - I have a IDE Hitachi HD, from my old computer that use to run with XP 32. - Now i have a Windows 7 64 on a Toshiba. - I'm trying to get the folders from the IDE disk, and i already have changed the ownership authorization, - But it stills prompting the message that i need...
Hardware & Devices

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 08:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App