首页 > 编程知识 正文

右键管理员取得所有权限,右键添加取得管理员权限

时间:2023-05-03 20:07:28 阅读:216983 作者:1226

打开记事本,复制下面的代码:

Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT*shellrunas]@="管理员取得所有权""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]@="管理员取得所有权""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]@="管理员取得所有权""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"

保存为system.reg文件。



双击运行该文件即可。


版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。