Report operating system errors
Signaler les erreurs du système d’exploitation
Explanation
This policy setting controls whether errors in the operating system are included Windows Error Reporting is enabled.
If you enable this policy setting, Windows Error Reporting includes operating system errors.
If you disable this policy setting, operating system errors are not included in error reports.
If you do not configure this policy setting, users can change this setting in Control Panel. By default, Windows Error Reporting settings in Control Panel are set to upload operating system errors.
See also the Configure Error Reporting policy setting.
Ce paramètre de stratégie contrôle si les erreurs du système d’exploitation sont incluses lorsque Rapport d’erreurs Windows est activé.
Si vous activez ce paramètre de stratégie, Rapport d’erreurs Windows inclut les erreurs du système d’exploitation.
Si vous désactivez ce paramètre de stratégie, les erreurs du système d’exploitation ne sont pas incluses dans les rapports d’erreurs.
Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent modifier ce paramètre dans le Panneau de configuration. Par défaut, les paramètres Rapport d’erreurs Windows du Panneau de configuration sont définis pour télécharger les erreurs du systèmes d’exploitation.
Consultez également le paramètre de stratégie Configurer le rapport d’erreurs.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\PCHealth\ErrorReporting- Value name
IncludeKernelFaults
| 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/PCH_ReportOperatingSystemFaults
$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 'IncludeKernelFaults' -Value 1 -Type DWordDisable
# Disable: ErrorReporting/PCH_ReportOperatingSystemFaults
$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 'IncludeKernelFaults' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": ErrorReporting/PCH_ReportOperatingSystemFaults
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
Remove-ItemProperty -Path $k -Name 'IncludeKernelFaults' -ErrorAction SilentlyContinue