Configure Default consent: registry value DefaultConsent (HKLM Consent)ComputerHKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent

Policy ID
WerDefaultConsent_2
Scope
Computer Configuration
Supported on
Windows 8.1, Windows 8, Windows 7, and Windows Vista only
Source
Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
Category
Windows Components › Windows Error Reporting › Consent

Registry

DefaultConsent

REG_DWORDComputer
Enabled value
Depends on the option value
Element
Consent level
Options
ItemStored value
Always ask before sending data1
Send parameters2
Send parameters and safe additional data3
Send all data4
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent]

; Options (use only one)
; Always ask before sending data
"DefaultConsent"=dword:00000001
; Send parameters
"DefaultConsent"=dword:00000002
; Send parameters and safe additional data
"DefaultConsent"=dword:00000003
; Send all data
"DefaultConsent"=dword:00000004
CMD
:: Options (use only one)

:: Always ask before sending data
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 1 /f
:: Send parameters
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 2 /f
:: Send parameters and safe additional data
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 3 /f
:: Send all data
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent" /v "DefaultConsent" /t REG_DWORD /d 4 /f
PowerShell
# Common: create the key
New-Item -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Force | Out-Null

# Options (use only one)
# Always ask before sending data
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 1 -Force | Out-Null
# Send parameters
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 2 -Force | Out-Null
# Send parameters and safe additional data
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 3 -Force | Out-Null
# Send all data
New-ItemProperty -Path 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent' -Name 'DefaultConsent' -PropertyType DWord -Value 4 -Force | Out-Null