时间:2023-06-02 16:16:41 来源: 人气:
1、首先建立记事本,复制以下代码到记事本中,另存为.reg格式,双击注册表即可获得管理员权限。, Windows Registry Editor Version 5.00, [-HKEY_CLASSES_ROOT*shellrunas], [HKEY_CLASSES_ROOT*shellrunas], @="获取超级管理员权限", "Icon"="C:WindowsSystem32imageres.dll,-78", "NoWorkingDirectory"="", [HKEY_CLASSES_ROOT*shellrunascommand], @="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_ROOTDirectoryshellrunas], [HKEY_CLASSES_ROOTDirectoryshellrunas], @="获取超级管理员权限", "Icon"="C:WindowsSystem32imageres.dll,-78", "NoWorkingDirectory"="", [HKEY_CLASSES_ROOTDirectoryshellrunascommand], @="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", [-HKEY_CLASSES_ROOTdllfileshell], [HKEY_CLASSES_ROOTdllfileshellrunas], @="获取超级管理员权限", "HasLUAShield"="", "NoWorkingDirectory"="", [HKEY_CLASSES_ROOTdllfileshellrunascommand], @="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_ROOTDriveshellrunas], [HKEY_CLASSES_ROOTDriveshellrunas], @="获取超级管理员权限", "Icon"="C:WindowsSystem32imageres.dll,-78", "NoWorkingDirectory"="", [HKEY_CLASSES_ROOTDriveshellrunascommand], @="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", 2、删除管理员权限。复制代码根据上面的步骤新建记事本粘贴到记事本中,另存为.reg格式,双击即可删除管理员权限。, Windows Registry Editor Version 5.00, [-HKEY_CLASSES_ROOT*shellrunas], [-HKEY_CLASSES_ROOTDirectoryshellrunas], [-HKEY_CLASSES_ROOTdllfileshell], [-HKEY_CLASSES_ROOTDriveshellrunas], [-HKEY_CLASSES_ROOTexefileshellrunas], [HKEY_CLASSES_ROOTexefileshellrunas], "HasLUAShield"="", [HKEY_CLASSES_ROOTexefileshellrunascommand], @=""%1" %*", "IsolatedCommand"=""%1" %*", 通过注册表来获取Win8.1超级管理员权限的方法更为方便,虽然是需要修改注册表,但我们采用的是导入注册表的方式,用户可以不用担心注册表修改错误。,