Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\TakeAuthority]
"icon"="\"C:\\windows\\system32\\SHELL32.dll,160\""
@="管理员取得所有权"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\*\Shell\TakeAuthority\Command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\exefile\shell\TakeAuthority]
"icon"="\"C:\\windows\\system32\\SHELL32.dll,160\""
@="管理员取得所有权"
[HKEY_CLASSES_ROOT\exefile\shell\TakeAuthority\Command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
"icon"="\"C:\\windows\\system32\\SHELL32.dll,160\""
"NoWorkingDirectory"=""
@="管理员取得所有权"
[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"