• Donate
    TheWindowsForum.com needs donations to stay online!
    Love TheWindowsForum.com? Then help keep it alive by sending a donation!

How To Add "Take Ownership" To Windows Explorer

WELCOME TO THEWINDOWSFORUM COMMUNITY!

Our community has more than 63,000 registered members, and we'd love to have you as a member. Join us and take part in our unbiased discussions among people of all different backgrounds about Windows OS, Software, Hardware and more.

pirate07

Well-Known Member
Aug 18, 2010
154
0
14253jm.jpg


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

98vh2x.jpg


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

14j9bux.jpg


6. Done

Works on XP/Vista/7 32 and 64 bit
 
Back