Open in the explorer

Display Error Notification

Afficher les notifications d’erreur

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
Windows Server 2003 and Windows XP only FR: Windows Server 2003 et Windows XP uniquement
ADMX file
ErrorReporting.admx
Internal name
ErrorReporting/PCH_ShowUI

Explanation

This policy setting controls whether users are shown an error dialog box that lets them report an error.

If you enable this policy setting, users are notified in a dialog box that an error has occurred, and can display more details about the error. If the Configure Error Reporting policy setting is also enabled, the user can also report the error.

If you disable this policy setting, users are not notified that errors have occurred. If the Configure Error Reporting policy setting is also enabled, errors are reported, but users receive no notification. Disabling this policy setting is useful for servers that do not have interactive users.

If you do not configure this policy setting, users can change this setting in Control Panel, which is set to enable notification by default on computers that are running Windows XP Personal Edition and Windows XP Professional Edition, and disable notification by default on computers that are running Windows Server.

See also the Configure Error Reporting policy setting.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle si une boîte de dialogue d’erreur est présentée aux utilisateurs pour leur permettre de signaler une erreur.

Si vous activez ce paramètre de stratégie, les utilisateurs sont notifiés via une boîte de dialogue qu’une erreur s’est produite et peuvent afficher des détails supplémentaires sur cette erreur. Si le paramètre de stratégie Configurer le rapport d’erreurs est également activé, l’utilisateur peut également signaler l’erreur.

Si vous désactivez ce paramètre de stratégie, les utilisateurs ne sont pas avertis que des erreurs se sont produites. Si le paramètre de stratégie Configurer le rapport d’erreurs est également activé, les erreurs sont signalées, mais les utilisateurs ne reçoivent aucune notification. La désactivation de ce paramètre de stratégie est utile pour les serveurs qui n’ont pas d’utilisateurs interactifs.

Si vous ne configurez pas ce paramètre de stratégie, les utilisateurs peuvent le modifier dans le Panneau de configuration où il est défini pour activer les notifications par défaut sur les ordinateurs qui exécutent Windows XP Édition personnelle et Windows XP Professionnel et pour désactiver les notifications par défaut sur les ordinateurs qui exécutent Windows Server.

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

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\PCHealth\ErrorReporting
Value name
ShowUI
StateValue written
EnabledREG_DWORD = 1
KeyValueData
Software\Policies\Microsoft\PCHealth\ErrorReporting\DWDWAllowHeadlessREG_DWORD = 0
DisabledREG_DWORD = 0
KeyValueData
Software\Policies\Microsoft\PCHealth\ErrorReporting\DWDWAllowHeadlessREG_DWORD = 1

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_ShowUI
$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 'ShowUI' -Value 1 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting\DW'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DWAllowHeadless' -Value 0 -Type DWord

Disable

# Disable: ErrorReporting/PCH_ShowUI
$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 'ShowUI' -Value 0 -Type DWord
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting\DW'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'DWAllowHeadless' -Value 1 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": ErrorReporting/PCH_ShowUI
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting'
Remove-ItemProperty -Path $k -Name 'ShowUI' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\Microsoft\PCHealth\ErrorReporting\DW'
Remove-ItemProperty -Path $k -Name 'DWAllowHeadless' -ErrorAction SilentlyContinue

Availability