To install this option open command prompt in "Run As Administrator" mode:
Paste these commnads:
reg add "HKCR\*\shell\runas" /ve /t REG_SZ /d "Take Ownership" /f
reg add "HKCR\*\shell\runas" /v NoWorkingDirectory /t REG_SZ /d "" /f
reg add "HKCR\*\shell\runas\command" /v IsolatedCommand /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
reg add "HKCR\*\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
reg add "HKCR\Directory\shell\runas" /ve /t REG_SZ /d "Take Ownership" /f
reg add "HKCR\Directory\shell\runas" /v NoWorkingDirectory /t REG_SZ /d "" /f
reg add "HKCR\Directory\shell\runas\command" /v IsolatedCommand /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
reg add "HKCR\Directory\shell\runas\command" /ve /t REG_SZ /d "cmd.exe /c takeown /f \"%%1\" && icacls \"%%1\" /grant administrators:F" /f
To remove this customization paste these commands:
reg delete "HKCR\*\shell\runas" /f
reg delete "HKCR\Directory\shell\runas" /f
No comments:
Post a Comment