Open in the explorer

Disable logging

Désactiver la journalisation

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Error Reporting FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rapport d’erreurs Windows
Supported on
At least Windows Vista FR: Au minimum Windows Vista
ADMX file
ErrorReporting.admx
Internal name
ErrorReporting/WerNoLogging_2

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.

French text from Windows 11 26H2

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_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting
Value name
LoggingDisabled
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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_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 'LoggingDisabled' -Value 1 -Type DWord

Disable

# Disable: ErrorReporting/WerNoLogging_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 'LoggingDisabled' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ErrorReporting/WerNoLogging_2
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting'
Remove-ItemProperty -Path $k -Name 'LoggingDisabled' -ErrorAction SilentlyContinue

Availability