Disable Windows Error Reporting
Désactiver Rapport d’erreurs Windows
Explanation
This policy setting turns off Windows Error Reporting, so that reports are not collected or sent to either Microsoft or internal servers within your organization when software unexpectedly stops working or fails.
If you enable this policy setting, Windows Error Reporting does not send any problem information to Microsoft. Additionally, solution information is not available in Security and Maintenance in Control Panel.
If you disable or do not configure this policy setting, the Turn off Windows Error Reporting policy setting in Computer Configuration/Administrative Templates/System/Internet Communication Management/Internet Communication settings takes precedence. If Turn off Windows Error Reporting is also either disabled or not configured, user settings in Control Panel for Windows Error Reporting are applied.
Ce paramètre de stratégie désactive Rapport d'erreurs Windows, de sorte qu'aucun rapport n'est recueilli ou envoyé à Microsoft ou à des serveurs internes au sein de votre organisation lorsqu'un logiciel cesse inopinément de fonctionner ou échoue.
Si vous activez ce paramètre de stratégie, Rapport d'erreurs Windows n'envoie pas d'informations relatives aux problèmes à Microsoft. En outre, aucune information de solution n'est disponible dans Sécurité et maintenance dans le Panneau de configuration.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le paramètre de stratégie Désactiver Rapport d'erreurs Windows dans Configuration ordinateur/Modèles d'administration/Système/Gestion de la communication Internet/Paramètres de communication Internet est prioritaire. Si par ailleurs Désactiver Rapport d'erreurs est désactivé ou n'est pas configuré, les paramètres utilisateur pour Rapport d'erreurs Windows dans le Panneau de configuration sont appliqués.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting- Value name
Disabled
| 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/WerDisable_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 1 -Type DWordDisable
# Disable: ErrorReporting/WerDisable_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'Disabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ErrorReporting/WerDisable_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'Disabled' -ErrorAction SilentlyContinue