Prevent display of the user interface for critical errors
Ne pas afficher l’interface utilisateur pour les erreurs critiques
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.
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
| 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/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 DWordDisable
# 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 DWordRevert 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