User Account Control: Behavior of the elevation prompt for standard users: registry value ConsentPromptBehaviorUserComputerHKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System
- Category
- Security Settings › Local Policies › Security Options
- Scope
- Computer Configuration
- Source
- Windows 11 (version 26H2 · 26300.9457)
Registry
ConsentPromptBehaviorUser
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- User Account Control: Behavior of the elevation prompt for standard users
| Item | Stored value |
|---|---|
| Automatically deny elevation requests | 0 |
| Prompt for credentials on the secure desktop | 1 |
| Prompt for credentials | 3 |
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) ; Automatically deny elevation requests "ConsentPromptBehaviorUser"=dword:00000000 ; Prompt for credentials on the secure desktop "ConsentPromptBehaviorUser"=dword:00000001 ; Prompt for credentials "ConsentPromptBehaviorUser"=dword:00000003
CMD
:: Options (use only one) :: Automatically deny elevation requests reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorUser" /t REG_DWORD /d 0 /f :: Prompt for credentials on the secure desktop reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorUser" /t REG_DWORD /d 1 /f :: Prompt for credentials reg add "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorUser" /t REG_DWORD /d 3 /f
PowerShell
# Common: create the key New-Item -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Force | Out-Null # Options (use only one) # Automatically deny elevation requests New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorUser' -PropertyType DWord -Value 0 -Force | Out-Null # Prompt for credentials on the secure desktop New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorUser' -PropertyType DWord -Value 1 -Force | Out-Null # Prompt for credentials New-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name 'ConsentPromptBehaviorUser' -PropertyType DWord -Value 3 -Force | Out-Null