在win7/8/10鼠标右键添加“管理员取得所有权”

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"

上一篇:Spark排序之SortByKey


下一篇:利用dotnet-dump分析docker容器内存泄露