怎么使右键菜单显示“管理员所有权”?
- IT科技
- 关注:2.13W次
材料/工具
方法
打开 桌面
右键选择 新建
选择 文本文件
输入 Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellunas]@="管理员取得所有权""NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT*shellunascommand]@="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_ROOTexefileshellunas2]@="管理员取得所有权""NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTexefileshellunas2command]@="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_ROOTDirectoryshellunas]@="管理员取得所有权""NoWorkingDirectory"=""
[HKEY_CLASSES_ROOTDirectoryshellunascommand]@="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
选择 是
双击 文件
效果图
- 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/j8dmg.html