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