How To Take Ownership Of File Windows 11 In Registry [ 2025-2027 ]
Save the document as TakeOwnership.reg , ensuring the file extension is correct. Double-click this file to merge it into the registry.
[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" Use code with caution. Copied to clipboard Save the file how to take ownership of file windows 11 in registry
This report details both scenarios: adding the context menu shortcut for files, and taking ownership of registry keys themselves. Save the document as TakeOwnership
However, you can use Registry to:
Taking ownership of a file or folder in Windows 11 is typically handled via the File Explorer GUI (Properties > Security > Advanced). However, performing this action "in the registry" refers to modifying the HKEY_CLASSES_ROOT to add a "Take Ownership" shortcut to the right-click context menu. This allows for one-click ownership changes without navigating through multiple security dialogues. Copied to clipboard Save the file This report
This approach streamlines the process, allowing you to take ownership of files or folders directly from the right-click menu.
[HKEY_CLASSES_ROOT\*\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"