admin

windows下右键获取管理员权限
兼容vista-win10 WindowsServer等。xp下权限好像没啥问题,没用到过。ICON这行可以修改,...
扫描右侧二维码阅读全文
01
2017/08

windows下右键获取管理员权限

兼容vista-win10 WindowsServer等。xp下权限好像没啥问题,没用到过。
ICON这行可以修改,或者干脆删掉<!--more-->

老版本 win10/win8/win7右键获取管理员权限

Windows Registry Editor Version 5.00     
[HKEY_CLASSES_ROOT*shellrunas]     
@="获取管理员权限"
"Icon"="D:\GreenSoft\SystemTools\获取管理员权限\useradmin.ico"     
"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_ROOTexefileshellrunas2]     
@="★获取管理员权限"
"Icon"="D:\GreenSoft\SystemTools\获取管理员权限\useradmin.ico"     
"NoWorkingDirectory"=""     
[HKEY_CLASSES_ROOTexefileshellrunas2command]     
@="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]     
@="获取管理员权限" 
"Icon"="D:\GreenSoft\SystemTools\获取管理员权限\useradmin.ico"      
"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"  

删除<pre>
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shellrunas]
[-HKEY_CLASSES_ROOTexefileshellrunas2]
[-HKEY_CLASSES_ROOTDirectoryshellrunas]
</pre>

下载

链接: http://pan.baidu.com/s/1mivBInm 密码: 57if
Last modification:October 13th, 2018 at 10:09 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

captcha
请输入验证码