使用者帳戶控制:使用系統管理員保護來執行的系統管理員的提高權限提示行為 的登錄值 ConsentPromptBehaviorEnhancedAdmin電腦HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
登錄
ConsentPromptBehaviorEnhancedAdmin
REG_DWORD電腦- 啟用時的值
- 取決於選項值
- 元素
- 使用者帳戶控制:使用系統管理員保護來執行的系統管理員的提高權限提示行為
| 項目 | 儲存的值 |
|---|---|
| 在安全桌面提示輸入認證 | 1 |
| 在安全桌面提示要求同意 | 2 |
以 .reg · CMD · PowerShell 套用
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; 選項 (只使用其中一個) ; 在安全桌面提示輸入認證 "ConsentPromptBehaviorEnhancedAdmin"=dword:00000001 ; 在安全桌面提示要求同意 "ConsentPromptBehaviorEnhancedAdmin"=dword:00000002
CMD
:: 選項 (只使用其中一個) :: 在安全桌面提示輸入認證 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorEnhancedAdmin" /t REG_DWORD /d 1 /f :: 在安全桌面提示要求同意 reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorEnhancedAdmin" /t REG_DWORD /d 2 /f
PowerShell
# 共通: 建立機碼 New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # 選項 (只使用其中一個) # 在安全桌面提示輸入認證 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorEnhancedAdmin' -PropertyType DWord -Value 1 -Force | Out-Null # 在安全桌面提示要求同意 New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorEnhancedAdmin' -PropertyType DWord -Value 2 -Force | Out-Null