pirate07
Well-Known Member
- Joined
- Aug 18, 2010
- Messages
- 154

How To Add "Take Ownership" To Windows Explorer Right Click Menu
1. Open Notepad
2. Copy and Paste this code
Code:
<i>
</i>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"
3. Click File > Save As > From The "Save as Type" Drop Down Select "All Files" > Save it as "Install
TakeOwnership.reg" [without quotes]
4. Double Click Install TakeOwnership.reg
5. Click Yes in New Window that pops up

6. Done
To Remove "Take Ownership" From Windows Explorer Right Click Menu
1. Open Notepad
2. Copy and Paste this code
Code:
<i>
</i>Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\runas]
[-HKEY_CLASSES_ROOT\Directory\shell\runas]
3. Click File > Save As > From The "Save as Type" Drop Down Select "All Files" > Save it as
"RemoveTakeOwnership.reg" [without quotes]
4. Double Click RemoveTakeOwnership.reg
5. Click Yes in New Window that pops up

6. Done
Works on XP/Vista/7 32 and 64 bit