添加右键超级管理员权限:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shell
unas]
@="获取超级管理员所有权限"
"Icon"="C:\Windows\System32\imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT*shell
unascommand]
@="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_ROOTexefileshell
unas2]
@="获取超级管理员所有权限"
"Icon"="C:\Windows\System32\imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshell
unas2command]
@="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_ROOTDirectoryshell
unas]
@="获取超级管理员所有权限"
"Icon"="C:\Windows\System32\imageres.dll,101"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshell
unascommand]
@="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"
注意:Win10中文操作最系统,上面这段代码要用GB编码方式存储执行,不然中文可能导不进注册表甚至会出现乱码。
删除右键获取超级管理员权限:
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shell
unas]
[-HKEY_CLASSES_ROOTexefileshell
unas2]
[-HKEY_CLASSES_ROOTDirectoryshell
unas]
[-HKEY_CLASSES_ROOT*shell
unas-]
[-HKEY_CLASSES_ROOTexefileshell
unas2-]
[-HKEY_CLASSES_ROOTDirectoryshell
unas-]
下面直接下载制作好的懒人包,作者已写好打包,下载后直接解压缩运行即可。