How to add Take ownership With pause in Windows 11

Add Take ownership With pause in Windows 11

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\dllfile\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\dllfile\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" /r & icacls \"%1\" /grant *S-1-5-32-544:F /t & Pause" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r & icacls \"%1\" /grant *S-1-5-32-544:F /t & Pause" [HKEY_CLASSES_ROOT\*\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\*\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" & icacls \"%1\" /grant *S-1-5-32-544:F & Pause" [HKEY_CLASSES_ROOT\Directory\shell\runas] @="Take Ownership" "HasLUAShield"="" "NoWorkingDirectory"="" [HKEY_CLASSES_ROOT\Directory\shell\runas\command] @="cmd.exe /c takeown /f \"%1\" /r & icacls \"%1\" /grant *S-1-5-32-544:F /t & Pause" "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r & icacls \"%1\" /grant *S-1-5-32-544:F /t & Pause"

Remove Take ownership With pause in Windows 11

Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\*\shell\runas] [HKEY_CLASSES_ROOT\*\shell\runas] @="" "HasLUAShield"="" [HKEY_CLASSES_ROOT\*\shell\runas\command] @="\"%1\" %*" "IsolatedCommand"="\"%1\" %*" [-HKEY_CLASSES_ROOT\Directory\shell\runas]