Open in the explorer

Report unplanned shutdown events

Faire un rapport sur les événements d’arrêt non planifiés

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Windows Components › Windows Error Reporting › Advanced Error Reporting Settings FR: Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Rapport d’erreurs Windows › Paramètres de rapport d’erreurs avancés
Supported on
Windows Server 2003 only FR: Windows Server 2003 uniquement
ADMX file
Reliability.admx
Internal name
Reliability/PCH_ReportShutdownEvents

Explanation

This policy setting controls whether or not unplanned shutdown events can be reported when error reporting is enabled.

If you enable this policy setting, error reporting includes unplanned shutdown events.

If you disable this policy setting, unplanned shutdown events are not included in error reporting.

If you do not configure this policy setting, users can adjust this setting using the control panel, which is set to "Upload unplanned shutdown events" by default.

Also see the "Configure Error Reporting" policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie permet de contrôler si les événements d’arrêts imprévus peuvent être signalés lorsque le rapport d’erreurs est activé.

Si vous activez ce paramètre de stratégie, le rapport d’erreurs inclut les événements d’arrêts imprévus.

Si vous désactivez ce paramètre de stratégie, les événements d’arrêt imprévus ne figurent pas dans le rapport d’erreurs.

Si vous ne configurez pas ce paramètre de stratégie, l’utilisateur peut régler ce dernier via le Panneau de configuration, où il a pour valeur par défaut « Télécharger les événements d’arrêt non prévus ».

Consultez également le paramètre de stratégie « Configurer le rapport d’erreurs ».

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\PCHealth\ErrorReporting
Value name
IncludeShutdownErrs
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: Reliability/PCH_ReportShutdownEvents
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'IncludeShutdownErrs' -Value 1 -Type DWord

Disable

# Disable: Reliability/PCH_ReportShutdownEvents
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'IncludeShutdownErrs' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": Reliability/PCH_ReportShutdownEvents
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
Remove-ItemProperty -Path $k -Name 'IncludeShutdownErrs' -ErrorAction SilentlyContinue

Availability