Skip to content

Instantly share code, notes, and snippets.

@langheran
Created March 7, 2025 16:02
Show Gist options
  • Save langheran/54b50be87b92bb4a21b3495d21310030 to your computer and use it in GitHub Desktop.
Save langheran/54b50be87b92bb4a21b3495d21310030 to your computer and use it in GitHub Desktop.
C:\Users\NisimHurst\NDS\scripts\stop_windows_error_reporting.bat
@echo off
echo Disabling Windows Error Reporting Service ...
sc query "WerSvc"| find "RUNNING" >nul 2>&1 && net stop "WerSvc" && sc config "WerSvc" start= disabled
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f >nul 2>&1
echo
echo Windows Error Reporting Service has been disabled.
echo
echo Windows Explorer needs to be restarted.
pause
start /wait TASKKILL /F /IM explorer.exe
start explorer.exe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment