Saturday 16 November 2013

Access Edit and Delete all restricted files and folders with adding "Take Ownership" to right click

Sometimes you aren't able to access/delete specific folders or files...
and they are just adding a unneeded load to disk space and explorer's space
Now you can access those files and delete them
To do that you just need a ownership of the file...
you can do it with cmd or just by right clicking on it.But cmd is a long route...
so to do it easy and quick you just need to copy the code below and paste it into a new text document then change the extension of text file to .reg you may rename that file into TakeOwnership.reg

Windows Registry Editor Version 5.00
;created by itworld01.blogspot.com
[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"br /> "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"

Now run the reg file you've created you'll get a pop up like this
Go for it,hit yes
Almost done
Now right click on anything you want to delete,click on the new "Take Ownership" option,which will appear something similar to this one
but be sure of what you're going to do, because now you have access to those file that you didn't suppose to...
if you'll delete something that you're systems need you will stand in no where and you're system will be just like a showpiece then.

so if you've children around which likes to play with the system or you have that kind friend,who want to kick your system to garbage , when you're not around and play like the innocent the safe thing is to remove that feature from your right click to do that you will have to create another reg file with the code below in it... and every other thing is same as above.

Windows Registry Editor Version 5.00
;created by itworld01.blogspot.com

[-HKEY_CLASSES_ROOT\*\shell\runas]

[-HKEY_CLASSES_ROOT\Directory\shell\runas]


What it does is it create an empty registry replacing the previous one getting rid of the feature you added now.This is the background thingy...for those who wanna increase your knowledge about windows registry editor, aha one thing more for them is now they know what to do if you wanna add something to your right click to do study the above key data,yet wanna help comment..

with taking the ownership you'll get access to a folder named "System Volume Information",which is there in every ntfs drive (in windows only).
And there are many more possibilities what you can do with it.
The only limit is your imagination
SO GO ON ----> THINK
Till then LIVE,BREATHE and BLOG... ;D

No comments:

Post a Comment