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

Win7 如何獲得管理員權限?兩招搞定檔案/程式權限不足

編輯:Win7 系統應用技巧

場景一:檔案/資料夾存取被拒 → 右鍵選單「管理員取得所有權」

  1. 若已安裝「取得所有權」右鍵擴充功能 (許多優化包/純淨版預裝,或手動匯入註冊表),直接右鍵目標檔案/資料夾 → 選擇 **「管理員取得所有權」**。
  2. 系統自動遞迴修改擁有者為 `Administrators` 群組並給予完全控制權限,即可隨意操作。

場景二:程式需管理員權限執行 → 右鍵「以系統管理員身分執行」

  1. 程式捷徑/執行檔右鍵 → 選擇 **「以系統管理員身分執行」**。
  2. UAC 提示點擊「是」,程式獲得完整管理員權杖運行。

場景三:永久以管理員身分執行特定程式

  1. 程式捷徑右鍵 → 「內容」 → 「相容性」標籤 → 勾選 **「以系統管理員身分執行此程式」** → 「確定」。
  2. 以後雙擊捷徑自動提權啟動。

進階:啟用內建 Administrator 超級管理員帳號

參考 ID 92281。警告: 日常使用**強烈不建議**啟用/登入 Administrator 帳號,繞過 UAC 保護極易導致系統被惡意軟體破壞、誤刪關鍵檔案。僅在深度維修/部署映像等特定場景短暫使用,用畢即停用。

註冊表手動添加「取得所有權」右鍵選單 (無第三方工具)

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 /t /c /l /q"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F /t /c /l /q"

[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 /c /l /q"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t /c /l /q"

存為 `.reg` 檔雙擊匯入即可生效 (需管理員權限)。

Copyright © Windows教程網 All Rights Reserved