It is not easy to take control of files or directories under Windows 10. The interface, as well as the command line, do so many steps. You may incorporate a simple menu command that allows you to own any file or folder. In this article, we will guide you through the whole procedure to add “Take Ownership” in Windows 10 Explorer to the right-click menu.

Add “Take Ownership” in Windows 10 Explorer to the right-click menu

To add “Take Ownership” in Windows 10 Explorer to the right-click menu, follow this procedure step by step.

Click the Search button. Type Run in the search box and select the Run option as the following image is showing.

As soon as you click the Run option, the following dialogue box will appear.

Write Regedit in the Open textbox and then click the OK button as highlighted in the above image. As you click the OK button, the following Registry Editor screen will appear.

Navigate through the following path from the left pane of the screen.

HKEY_CLASSES_ROOT -> * -> shell

Right-click on the shell option and select the New -> Key option as the following image is showing.

Rename the newly created key as runas as the following image is showing.

Double click the Default value of runas key and the following dialogue box will appear.

Write Take Ownership in the Value data textbox and then click the OK button as highlighted in the above image. Type that option name here which you want to see in the right click menu.

Right click the runas option and select the New -> String Value option as the following image is showing.

Rename the newly created string value as NoWorkingDirectory as the following image is showing.

Create another key under runas by right clicking it. Then select the New -> Key option. Rename this key as a command as the following image is showing.

Now double click the Default value under command key and the following dialogue box will appear.

Type cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F in the Value data textbox and then click the OK button as highlighted in the above image. Now right click the command key and choose the New -> String Value option. Rename the newly created string as IsolatedCommand as the following image is showing.

Double click the IsolatedCommand key and the following dialogue box will appear.

Write cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F in the Value data and then click the OK button as highlighted in the above image.

Now you will see the Take Ownership option in the right-click menu.

Conclusion

By following this procedure, you will be able to add “Take Ownership” in Windows 10 Explorer to the right-click menu.

How to add “Take Ownership” in Windows 10 Explorer to the right click menu
Avatar

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. He blogs at LinuxWays.

Leave a Reply

Your email address will not be published. Required fields are marked *

*