Download latest version

Student Ambassadors

Take ownership to edit and delete undeletable windows files

Copy and paste this code in notepad and save it as Take ownership.reg


Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT*shellrunas]
@=”Take Ownership”
“NoWorkingDirectory”=”"


[HKEY_CLASSES_ROOT*shellrunascommand]
@=”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_ROOTDirectoryshellrunas]
@=”Take Ownership”
“NoWorkingDirectory”=”"


[HKEY_CLASSES_ROOTDirectoryshellrunascommand]
@=”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”


now when you right click on any windows files you can find take ownership option

0 comments:

Post a Comment

Powered by Blogger.

visitors

CAUTION

ALL THE TRICKS ARE FOR EDUCATIONAL PURPOSE. OWNER AND THIS BLOG WILL NOT BE RESPONSIBLE FOR ANY MISUSE OF THE TRICKS OF THIS BLOG.