Open in the explorer

Prevent display of the user interface for critical errors

Ne pas afficher l’interface utilisateur pour les erreurs critiques

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/WerDoNotShowUI

Explanation

This policy setting prevents the display of the user interface for critical errors.

If you enable or do not configure this policy setting, Windows Error Reporting does not display any GUI-based error messages or dialog boxes for critical errors.

If you disable this policy setting, Windows Error Reporting displays the GUI-based error messages or dialog boxes for critical errors.

French text from Windows 11 26H2

Ce paramètre de stratégie empêche l'affichage de l'interface utilisateur pour les erreurs critiques.

Si vous activez ce paramètre de stratégie ou ne le configurez pas, le Rapport d'erreurs Windows n'affiche pas de messages d'erreur ou boîtes de dialogue basés sur GUI pour les erreurs critiques.

Si vous désactivez ce paramètre de stratégie, le Rapport d'erreurs Windows affiche les messages d'erreur ou boîtes de dialogue basés sur GUI pour les erreurs critiques.

Registry

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting
Value name
DontShowUI
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/WerDoNotShowUI
$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 'DontShowUI' -Value 1 -Type DWord

Disable

# Disable: ErrorReporting/WerDoNotShowUI
$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 'DontShowUI' -Value 0 -Type DWord

Revert to "Not configured"

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

Availability