Skip to main content

PowerShell script to disable Windows Error Reporting.

Write-Output "Disabling Windows Error Reporting (WER)"

$werKey = "HKLM:\SOFTWARE\Microsoft\Windows\Windows Error Reporting"
Set-ItemProperty $werKey -Name "ForceQueue" -Value 1
if (Test-Path "$werKey\Consent") {
    Set-ItemProperty "$werKey\Consent" -Name "DefaultConsent" -Value 1
}

Write-Output "Windows Error Reporting (WER) dialog has been disabled."