Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 取得檔案/資料夾管理員權限,兩種方法一鍵解決存取被拒

編輯:Windows 7 系統介紹

Win7 權限機制嚴格,常遇到無法修改、刪除系統檔或舊資料夾。需取得「所有權」並授予 Administrators 群組完整控制權。提供兩種方法:匯入登錄檔加入右鍵選單、或使用優化工具。

方法一:登錄檔加入右鍵「管理員取得所有權」

  1. 記事本貼入以下內容,存為 TakeOwnership.reg:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="管理員取得所有權"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="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_ROOT\exefile\shell\runas2]
@="管理員取得所有權"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas2\command]
@="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_ROOT\Directory\shell\runas]
@="管理員取得所有權"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="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"
  1. 雙擊匯入登錄,之後對任何檔案/資料夾右鍵即可看到「管理員取得所有權」,點選自動完成遞歸授權。

方法二:使用優化工具

Vista/Win7 優化大師、Windows 7 優化大師、Vista 總管、Windows 7 總管等工具的「右鍵設定」中均內建「新增取得管理員權限」功能,勾選套用即可,無需手動編輯登錄。

管理員權限(SYSTEM 權限)的強大用途

  1. 存取受限登錄機碼:如 HKLM\SAM、HKLM\SECURITY,揭露隱藏管理員帳號、木馬植入點。
  2. 刪除系統還原資料夾:System Volume Information 受保護,取得權限後可清理釋放空間或建立隱私資料夾。
  3. 替換系統檔案:繞過 Windows File Protection,如以 Win2003 termsrv.dll 替換 XP 同名檔啟用多使用者遠端桌面。
  4. 手動清除頑固病毒:管理員權限無法結束/刪除的惡意進程與檔案,SYSTEM 權限可強制清除。
Copyright © Windows教程網 All Rights Reserved