Add Take Ownership to the right-click menu in Windows 7

Changing / editing file system in previous versions of Windows was (and still is for those who still use XP or older versions of Windows) a rather simple task to accomplish. But with the launch Windows Vista, microsoft increased security operating system, and in Windows 7 it became even tighter. Giving administrative permissions (take ownership) On a protected file system is a process that Pope some time to be completed, whether done by GUI or by Command Prompt.

Fortunately there is a small (well, not really small, but it is performed only once: P) Registry hack which adds the option Take Ownership in the right-click menu, so after achieving it, whenever you have to pay Administrator rights the file system is enough to give two clicks and done, the problem is solved.

How can we add Take Ownership to right-click menu using registry

Attention! Before modifying the system registry it is recommended to make a their eventiuale to avoid unpleasant consequences.

  • open Registry Editor (type: regedit in Search site from Start Menu and give Enter) And navigate to the path HKEY_CLASSES_ROOT * shell
  • under shell create a new key you called runas

new-key

  • in the right pane change the value entry Default in Take OwnershipThen create a new String entry, which called NoWorkingDirectory (And do not give it any value)

new-string

  • under runas create a new key called you command
  • in the right pane double-click the entry Default then enter the following line in the field below Value
  • cmd.exe / c takeown / f "% 1" && icacls "% 1" / grant administrators: F
  • then create a new String Value entry that called IsolatedCommand, To whom you will give all value cmd.exe / c takeown / f "% 1" && icacls "% 1" / grant administrators: F

command-key

  • browse by way HKEY_CLASSES_ROOTDirectoryshell and create a new key called you runas
  • in the right pane change the value entry Default in Take OwnershipThen create a new String entry that called NoWorkingDirectory

runas

  • under runas create the key commandThen in the right pane change the value entry Default in
  • cmd.exe / c takeown / f "% 1" / r / dy && icacls "% 1" / grant administrators: F / t
  • create the new entry IsolatedCommand, Which give it the same value as the input Default (ie cmd.exe / c takeown / f "% 1" / r / dy && icacls "% 1" / grant administrators: F / t)

command

  • then close regedit

You will notice that the right-click menu there is a new option - Take Ownership - Which allows you to give administrative rights on any protected file system.

For those who are not accustomed to working with the registry can download and use the two files .Reg From lower:

InstallTakeOwnership.reg {FileLink = 2}
UninstallTakeOwnership.reg {FileLink = 3}

Note: Tested on Windows 7. Compatible with Windows Vista.

Add Take Ownership to the right-click menu in Windows 7

About the author

Stealth

Passionate about everything that means gadgets and IT, I write with pleasure stealthsettings.com from 2006 and I like to discover with you new things about computers and operating systems macOS, Linux, Windows, iOS and Android.

Leave a Comment