Windows 7 - Add the Take Ownership option to context menu

October 2016

To add the " Take Ownership" option to the context menu ( Right-click):
  • Open Notepad and paste the following code:

Windows Registry Editor Version 5.00

@="Take Ownership"

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

@="Take Ownership"

@="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"
  • Click on File> Save As > TakeOwnership.reg
  • Double click on the new .reg file created and confirm the changes that will be made in the registry.
  • To access the "Take Ownership" option, simply press and hold the Shift key while right-clicking on the folder or file of your choice.

Related :

This document entitled « Windows 7 - Add the Take Ownership option to context menu » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.