Take Ownership of files with just a click - Windows 7/Vista

Taking ownership of system files or folders in Windows 7 or Vista is not a simpler task.
Taking ownership of a file/directory gives you direct read/write access to the file (without going through UAC) and forces other users to go through UAC to get such access.
Making some changes in registry can help you taking ownership of files and folders on just one click.
Here’s what the new right-click menu will look like after installing this registry tweak.

Please follow the step to Add "Take Ownership" to Explorer Right-Click Menu in Win 7 or Vista also make sure to backup the registry before editing.

1.Copy the below regeistry tweak on a notepad and save the notepad as Takeownership.reg

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"


2)Double-click the Takeownership.reg file and click through the prompts. No reboot necessary.

In case if you change the idea to remove the Takeownership from explorer menu, Please follow the step to Remove "Take Ownership" from Explorer Right-Click Menu in Win 7 or Vista

1).Copy the below regeistry tweak on a notepad and save the notepad as Removeownership.reg

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

[-HKEY_CLASSES_ROOT\Directory\shell\runas]


2)Double-click the Removeownership.reg file and click through the prompts. No reboot necessary.

No comments:

Post a Comment