User Account Control: Behavior of the elevation prompt for administrators running with Administrator protection: registry value ConsentPromptBehaviorEnhancedAdminComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
ConsentPromptBehaviorEnhancedAdmin
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- User Account Control: Behavior of the elevation prompt for administrators running with Administrator protection
| Item | Stored value |
|---|---|
| Prompt for credentials on the secure desktop | 1 |
| Prompt for consent on the secure desktop | 2 |
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] ; Options (use only one) ; Prompt for credentials on the secure desktop "ConsentPromptBehaviorEnhancedAdmin"=dword:00000001 ; Prompt for consent on the secure desktop "ConsentPromptBehaviorEnhancedAdmin"=dword:00000002
CMD
:: Options (use only one) :: Prompt for credentials on the secure desktop reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorEnhancedAdmin" /t REG_DWORD /d 1 /f :: Prompt for consent on the secure desktop reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorEnhancedAdmin" /t REG_DWORD /d 2 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # Options (use only one) # Prompt for credentials on the secure desktop New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorEnhancedAdmin' -PropertyType DWord -Value 1 -Force | Out-Null # Prompt for consent on the secure desktop New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorEnhancedAdmin' -PropertyType DWord -Value 2 -Force | Out-Null