joejoe.org Community: Easier Way to Take Ownership of Files in Vista - joejoe.org Community

Jump to content


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Easier Way to Take Ownership of Files in Vista Grant Access Files or Directories

#1 User is offline   Mikey™ Icon

  • Apple/Windows Dual User!
  • Icon
  • Group: Administrator
  • Posts: 4,347
  • Joined: 09-July 06
  • Gender:Male
  • Location:Orlando Florida
  • Interests:Computers, music, movies, Harley Davidson's, Theme Parks, the beach, reading, and being a good person.
  • OS: Mac OS X v10.6, Windows 7 Ultimate

Posted 25 May 2007 - 06:23 PM

In Windows Vista, there are lots of files and directories especially those operating system files plus Windows and Windows\System32 folders have been protected. These protected system files aren’t belong to any users or groups, instead are owned by TrustedInstaller, with even Administrator or Administrators group doesn’t have modify or write access to them. Thus if you intend to manipulate or replace the files, you’ll encounter access denied error even though you are administrator and have disabled UAC or already in elevation mode for the application trying to access.http://images.joejoe.org/vista_logo.png

In this case, users will probably have to right click on the object, then access the object’s properties. Then users have to click on Security tab, click on Advanced button, click on Owner tab, and then perform several clicks and confirmations to take ownership of the object. The whole process have to repeat again to grant read-write-modify or full control access rights to the users. The whole process takes lengthy time, troublesome, involves lots of clicks and steps. To simplify the process, simply download the TakeControlOf.cmd command line batch script, which will automatically take ownership and grant full control access rights by assigning new ACLs (Access Control Lists) to the file or directory that input to the command.


TakeControlOf.cmd makes use of two command-line utilities takeown (takes ownership of a file or directory) and icacls (sets new ACLs on a files or directory) respectively. Full Control access privilege will be given to Administrators group.

To use the batch script, simply launch an elevated command prompt, then run the script. Below is same examples (command should be issued from the directory where you store the TakeControlOf.cmd script):

TakeControlOf C:\Windows\Test_File.exe
TakeControlOf C:\Test_Directory

Note that if you specify a directory, the script will works recursively to include all subdirectories. To change this behavior, edit the TakeControlOf.cmd and remove /r from the takeown (first) line, and /t from icacls (second) line.


Download Download: TakeControlOf

Source Source: MyDigital Life

Posted Image


"Anyone who has never tried anything new, has never failed" Albert Einstein.

#2 User is offline   ricktendo64 Icon

  • Group: Banned Members
  • Icon
  • Group: Member
  • Posts: 592
  • Joined: 18-September 06
  • Gender:Male
  • Location:Honduras
  • OS: VAIO XP Sp2

Posted 25 May 2007 - 07:00 PM



Download Download: Take Control

Source Source: XPero's Utilities

Take Control lets you take ownership and get full control of any system file with ease (Windows Vista only)

Current version: 1.0 Beta 1

Note: For Windows Vista only

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users