Ignore custom consent settings
Ignorer les paramètres de consentement personnalisés
Explanation
This policy setting determines the behavior of the Configure Default Consent setting in relation to custom consent settings.
If you enable this policy setting, the default consent levels of Windows Error Reporting always override any other consent policy setting.
If you disable or do not configure this policy setting, custom consent policy settings for error reporting determine the consent level for specified event types, and the default consent setting determines only the consent level of any other error reports.
Ce paramètre de stratégie détermine le comportement du paramètre Configurer le consentement par défaut en relation avec les paramètres de consentement personnalisés.
Si vous activez ce paramètre de stratégie, les niveaux de consentement par défaut de Rapport d’erreurs Windows remplacent toujours tout autre paramètre de stratégie de consentement.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les paramètres de stratégie de consentement personnalisés pour les rapports d’erreurs déterminent le niveau de consentement pour les types d’événements spécifiés et le paramètre de consentement par défaut détermine uniquement le niveau de consentement de tous les autres rapports d’erreurs.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent- Value name
DefaultOverrideBehavior
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: ErrorReporting/WerConsentOverride_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DefaultOverrideBehavior' -Value 1 -Type DWordDisable
# Disable: ErrorReporting/WerConsentOverride_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DefaultOverrideBehavior' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ErrorReporting/WerConsentOverride_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting\Consent'
Remove-ItemProperty -Path $k -Name 'DefaultOverrideBehavior' -ErrorAction SilentlyContinue