Here’s how to — though note that using Registry for this is uncommon and risky. Normally, you’d use takeown + icacls in Command Prompt.
Always create a backup of your registry before making changes. how to take ownership of file windows 11 in registry
[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" Here’s how to — though note that using
This method creates a permanent context menu item that allows you to take ownership of any file or folder instantly. This involves editing the Windows Registry. Incorrect changes can cause system instability. Create a System Restore point before proceeding. how to take ownership of file windows 11 in registry