[Tip] Add “Take Ownership” Option in Files and Folders Context Menu in Windows
Many times you need to take ownership of a file or folder in Windows. For example, when you want to customize Windows UI and need to replace existing system files with a new one.
You have to follow number of steps to take ownership and grant yourself full permission and control to access the file or folder. But now you can do it in a single step.
You just need to download following zip file and extract it. You'll get a .REG file. Run the file and accept the confirmation:
It'll add an extra option "Take ownership" in file and folder context menu:
Now you can right-click on any file or folder and select "Take ownership" option. It'll make you the owner of the file or folder and you can perform your desired operation on that file or folder.
An extra uninstallation registry script is also available in the ZIP file in case you want to remove the option from context menu.
PS: If you want to know what kind of command does the context menu option "Take Ownership" execute when you click on it, here is some interesting information for you:
We have assigned 2 commands to the context menu option, so whenever you click on "Take Ownership" option from context menu, it executes those 2 commands to take ownership of the file/folder and assign full control to you.
Following are the 2 commands which are run by the context menu option:
To take ownership and grant full permission on a file:
takeown /f filename
icacls filename /grant administrators:F
To take ownership and grant full permission on a folder:
takeown /f foldername /r /d y
icacls foldername /grant administrators:F /t
You can run the above mentioned commands in Command Prompt to manually take ownership and grant full permission and control on any desired file or folder via command-line. Just replace filename and foldername terms in the commands with the actual file name and folder name.
NOTE: If you face any problem while taking ownership of a file or folder using context menu option, you can try to take the ownership manually using the method given in following tutorial:
Other similar articles that may interest you
- How to Program and Use Airtel Digital TV (ADTV), Tata Sky DTH and Videocon D2H Universal Remotes with your TV Set?
- How to Instant Apply Preferences in Mozilla Firefox Without Closing Options Window?
- Download Windows Media Center, Silverlight, SQL Server and Desktop Player Wallpapers from Microsoft
- Download and Install Latest Virus Definition Updates Offline in Microsoft Security Essentials (MSE)
- [Guide] How to Take Ownership (Permission) of a File or Folder Manually in Windows?
- Windows 8 Releases to Manufacturing (RTM), GA on October 26th, 2012