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

Windows Vista 不重啟關閉 UAC (使用者帳戶控制) 註冊表即時生效技巧

編輯:Windows Vista 教學

Vista UAC 雖提升安全性,但頻繁彈窗干擾開發/測試工作。傳統關閉法 (控制台 → 使用者帳戶 → 關閉 UAC) 需重啟。本文提供註冊表修改 ConsentPromptBehaviorAdmin 鍵值,無需重啟即時生效 的進階技巧。

操作步驟 (需管理員權限)

  1. Win+R → regedit。
  2. 定位 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System。
  3. 檢查/建立兩個 DWORD 值:
值名稱類型資料含義
ConsentPromptBehaviorAdminREG_DWORD0管理員啟動提權時 不提示、自動提權 (關閉 UAC 提示)
PromptOnSecureDesktopREG_DWORD0不切換到安全桌面 (加速提示/關閉視覺切換)

注意:原文提到的第二個鍵值路徑相同但數值為 2 似為筆誤;實測 ConsentPromptBehaviorAdmin=0 即可達到「不重啟關閉提示」效果。若需完全關閉 UAC (含標準使用者虛擬化),仍需控制台關閉並重啟。

驗證方式

  1. 修改註冊表後,直接嘗試執行需提權的動作 (如開啟 regedit、services.msc、寫入 C:\Windows)。
  2. 不再彈出 UAC 同意提示視窗,即表示生效。

還原 UAC

將 ConsentPromptBehaviorAdmin 改回 5 (預設:提示同意) 或 2 (提示憑證) → 即時生效。

適用範圍

  • Windows Vista (全版本)、Windows 7、Windows Server 2008/2008 R2。
  • Windows 8/10/11 同樣適用,但建議透過控制台滑桿調整等級。
Copyright © Windows教程網 All Rights Reserved