How to Add “Take Ownership” to the Right-Click Menu in …
To add “Take Ownership” to the right-click context menu in Windows, you can use the Registry Editor to make the necessary changes. The “Take Ownership” option allows you to quickly take ownership of files or folders, granting you full control over them. Please note that modifying the Windows Registry can be risky, so it’s essential to follow the steps carefully. Here’s how to do it:
Before proceeding, I must emphasize the importance of creating a backup of your registry or creating a system restore point. Making incorrect changes to the registry can cause system issues. Proceed with caution and at your own risk.
- Open Registry Editor:
- Press the “Windows key + R” on your keyboard to open the Run dialog box.
- Type “regedit” and press “Enter” to open the Registry Editor.
- Navigate to the ContextMenuHandlers Key:
- In the Registry Editor, navigate to the following key:
HKEY_CLASSES_ROOT\*\shell
- In the Registry Editor, navigate to the following key:
- Create a New Key:
- Right-click on the “shell” key, select “New,” and then choose “Key.”
- Name the new key as “TakeOwnership” (without quotes).
- Edit the Default Value:
- Click on the “TakeOwnership” key you just created.
- In the right-hand pane, double-click the “Default” string value.
- In the “Value data” field, enter the text you want to appear in the right-click menu, such as “Take Ownership.”
- Create a New Key Inside TakeOwnership:
- Now, right-click on the “TakeOwnership” key, select “New,” and then choose “Key.”
- Name the new key as “command” (without quotes).
- Edit the Default Value Inside the command Key:
- Click on the “command” key you just created.
- In the right-hand pane, double-click the “Default” string value.
- In the “Value data” field, enter the following command:
cmd.exe /c takeown /f "%1" && icacls "%1" /grant administrators:F
- Close Registry Editor:
- Close the Registry Editor, and the changes will be saved.
After completing these steps, you should see the “Take Ownership” option in the right-click context menu when you right-click on files or folders in Windows Explorer. When you select this option, it will give you ownership and full control over the selected file or folder.
Again, please be cautious when making changes to the Windows Registry. Incorrect modifications can cause system issues or even data loss. Always create backups or restore points before making any changes to the registry. If you’re not comfortable with registry editing, consider using third-party software or tools designed to add context menu options safely.
1 thought on “How to Add “Take Ownership” to the Right-Click Menu in …”