Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > PC Technology Zone > Windows Operating Systems and Software » How to take ownership of files in Vista
Closed Thread
Old 09-28-2007, 05:21 PM   #1 (permalink)
Mak213's Avatar
 

Join Date: Sep 2004

Location: C:\Windows\System32

Posts: 25,657

Mak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to allMak213 is a name known to all

Default How to take ownership of files in Vista

Alright since it seems that so many people have questions about how to do this i will give you a nice complete guide on how to take ownership of a file in Vista. First you have to select the file you want to take ownership of. From there right click and select properties. You get this screen:



From here select the security tab. The screen will look like this:



Click the Advanced button. It will bring this screen up:



Now click the Owner Tab. The screen will look like this:



From here you click Edit to get this screen:



If you want to take ownership of all files and folders in the subfolder of the main folder, say if you are taking control of a folder from XP like My Documents and you do not want to have to do it for each folder, check the box that says "Replace owner on sub-containers and objects." This will allow you to take ownership of all files and folders at once.

Now you select the User Account you want to give the permission to. Then click Apply. A message will pop up telling you that if you have just taken ownership you have to close and reopen the objects properties before you can view or change properties again. Click okay and get back to the Computer screen. You should now have full authority to do what you wish with that file. I hope this helps.

Added 11/5/2008:

How to do it using cmd prompt


This is just a simple command to take the ownership of a file in Windows Vista.

1. Open Start menu and enter cmd in the Search box.

2. Navigate to your file's directory in the command prompt. ( e. C:\Files\myfile.exe)

Then type in the following command:

Code:
takeown /f myfile.exe
You should get a success message once this is completed.

Quote:
SUCCESS: The file (or folder): "C:\Filesz\myfile.exe" now owned by user "ComputerName\username"
where

ComputerName = Your Computer's Name
username = Your user name

3. That will give you ownership of the file, but you still have no rights to delete it. Now you can run the cacls command to give yourself full control rights to the file:

Code:
cacls myfile.exe /G username:F
You need to substitute your user name in place of username .


Notes
-----
To take ownership of a folder and all its content, you can add the /r switch for recursive execution:

Code:
  takeown /f . /r
You can also use the /a switch to make the ownership go to the Administrators group instead of the current user:

Code:
  takeown /f intlcfg.exe /a
**NOTE**

XP Users check out this:

How to take ownership of a file or a folder in Windows XP
__________________
R.I.P. Danny L. Trotter
14 Nov 1945 - 4 Sept 2009
Images created by CarnageX | Decaptured...Listen! | Visit Baezware!! | You've been Mak'd! | 儿做好
I do not accept support questions via EMail, PM, IM or my Spaces page! .:|:. This is what happens when an unstoppable force meets an immovable object.
Thanks to all the guys on the staff for your support in my time of need. Hefe you are my personal Hero for your contribution.



<<<< If I help you, or you just like what I said, rep me

Last edited by Mak213; 07-10-2009 at 11:01 PM. Reason: Replaced hacked images from ImaegShack
Mak213 is online now  
Old 09-28-2007, 10:14 PM   #2 (permalink)
 
Junior Techie

Join Date: Jul 2007

Posts: 74

donaldj is on a distinguished road

Default Re: How to take ownership of files in Vista

Nice... I could have used this a while back... I had to figure it out the hard way...
__________________
CEO Donjworks.com
Animation Studio
donaldj is offline  
Old 01-06-2009, 06:48 PM   #3 (permalink)
 
Newb Techie

Join Date: Jan 2009

Posts: 12

SteveO712 is on a distinguished road

Default Re: How to take ownership of files in Vista

I've came across and used two other ways to take ownership in vista.
One is with a right click in explorer.
Add "Take Ownership" to Explorer Right-Click Menu in Vista :: the How-To Geek
And another that is used when the "Take Ownership" wasn't available through right click is Take Control.
Which is a little program that doesn't even need to be installed.
Take Control: Easy Way to Take Ownership of System Files in Windows Vista - Tweaking with Vishal

Hope they help some people out.
SteveO712 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
99% Memory used? tommyboy123x Building, Buying, or Upgrading High Performance PC Systems 12 09-27-2007 10:19 PM
Replacing Sys32 Files in Vista? AuThoRitY Windows Operating Systems and Software 7 09-06-2007 09:42 PM
10 Reasons You Don't Need Vista Today Cyber.Logan Building, Buying, or Upgrading High Performance PC Systems 47 08-15-2007 05:31 PM
Vista whoring nearly half my ram needlessly? Sydzy Overclocking, Case Mod, Tweaking PC Performance 16 05-07-2007 04:50 PM
Strange Problem - Cannot get mp3 or wma files to play but wav files will play..read afulls04 Computer Audio & Multimedia 8 04-23-2007 04:57 AM