Report unplanned shutdown events
Faire un rapport sur les événements d’arrêt non planifiés
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.
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
| 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: 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 DWordDisable
# 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 DWordRevert 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