How to take ownership of files in Vista/Win7 - Techist - Tech Forum

Go Back   Techist - Tech Forum > Techist Forum Information > Official TF Tutorials
Closed Thread
Thread Tools Display Modes
Old 09-28-2007, 04:21 PM   #1 (permalink)
Call me Mak or K
Mod Emeritus
KSoD's Avatar
Join Date: Sep 2004
Location: C:\
Posts: 35,647
Default How to take ownership of files in Vista/Win7

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:

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

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

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:

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

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

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

  takeown /f intlcfg.exe /a

XP Users check out this:

How to take ownership of a file or a folder in Windows XP

I do not accept support questions via EMail, PM, IM or my G+ page!

Phone: LG Optimus G Pro
Running: Stock JB from LG with Nova Launcher

KSoD is offline  
Old 09-28-2007, 09:14 PM   #2 (permalink)
Junior Techie
Join Date: Jul 2007
Posts: 74
Default re: How to take ownership of files in Vista/Win7

Nice... I could have used this a while back... I had to figure it out the hard way...

Animation Studio
donaldj is offline  
Old 01-06-2009, 05:48 PM   #3 (permalink)
Newb Techie
Join Date: Jan 2009
Posts: 12
Default re: How to take ownership of files in Vista/Win7

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial Redirecting Program Files and Program Files(x86) in Vista/Win7. c0rr0sive Projects and Tutorials 45 03-19-2012 08:44 PM
Quiz: How well do you know WIn7 cmds for files/folders? office politics Microsoft Windows and Software 5 04-14-2011 10:50 PM
Vista - to - Win7 = One CD possible? Jayce Microsoft Windows and Software 8 10-04-2009 07:14 PM
Windows Vista Take Ownership Extension Osiris Tips, Tricks & Tutorials 0 10-05-2008 07:56 PM
Vista Vs. Xp - Folder Ownership thundertiger Microsoft Windows and Software 2 10-04-2006 10:57 PM

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 08:08 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.