Disable logging
Désactiver la journalisation
Explanation
This policy setting controls whether Windows Error Reporting saves its own events and error messages to the system event log.
If you enable this policy setting, Windows Error Reporting events are not recorded in the system event log.
If you disable or do not configure this policy setting, Windows Error Reporting events and errors are logged to the system event log, as with other Windows-based programs.
Ce paramètre de stratégie contrôle si Rapport d’erreurs Windows enregistre ses propres événements et messages d’erreurs dans le journal des événements système.
Si vous activez ce paramètre de stratégie, les événements Rapport d’erreurs Windows ne sont pas enregistrés dans le journal des événements système.
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, les événements et erreurs de Rapport d’erreurs Windows sont consignés dans le journal des événements système, comme c’est le cas pour tout autre programme Windows.
Registry
HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting- Value name
LoggingDisabled
| 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/WerNoLogging_1
$k = 'HKCU:\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 'LoggingDisabled' -Value 1 -Type DWordDisable
# Disable: ErrorReporting/WerNoLogging_1
$k = 'HKCU:\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 'LoggingDisabled' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ErrorReporting/WerNoLogging_1
$k = 'HKCU:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'LoggingDisabled' -ErrorAction SilentlyContinue