材料/工具
方法
打開 桌面
右鍵選擇 新建
選擇 文本文件
輸入 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
選擇 是
雙擊 文件
效果圖