win10系统超级管理员权限获取,从此你可以无所不能,支持win11

此方法为在注册表中添加右键菜单权限,获取权限之后,将不再受限无权访问。

Windows Registry Editor Version 5.00
 
[-HKEY_CLASSES_ROOT*shellrunas]
 
[HKEY_CLASSES_ROOT*shellrunas]
@="获取超级管理员权限"
"Icon"="C:\Windows\System32\imageres.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:\Windows\System32\imageres.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:\Windows\System32\imageres.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"
//删除权限,同样方法,保存成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" %*"

原创文章,作者:键盘游走者,如若转载,请注明出处:http://www.708034.com/2021/12/win10xitongchaojiguanliyuanquanxianhuoqucongcinikeyiwusuobunengzhichiwin11/

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注