JSI Tip 8827. How can I disable the extra information that Windows Server 2003 Service Pack 1 records after a print spooler crash?
December 22, 2004
SP1 for Windows Server 2003 causes the Windows Error Reporting service to log additional information when it experiences a print spooler crash.
While there is no performance hit or other noticeable effect, you may want to disable this functionality until all your Windows Server 2003 computers are running SP1.
I have scripted DisableWERLogging.bat to configure all you Windows Server 2003 computers, so that this setting is available when you update a server.
The syntax for using DisableWERLogging.bat is:
DisableWERLogging [D|E]
Where the both D, or the lack of a parameter disables the extra logging, and an E enables the extra logging.
NOTE: DisableWERLogging.bat uses the DSQUERY Active Directory Command-Line tool, and REG.EXE, both built into Windows Server 2003 and Windows XP.
DisableWERLogging.bat contains:
@echo offsetlocalset data=1if /i {%1}=={E} set data=0set qry=dsquery * domainroot -filter "(&(objectCategory=Computer)(objectClass=Computer))" -attr name operatingSystem -Limit 0set key=HKLMSystemCurrentControlSetControlPrintfor /f "Tokens=1*" %%a in ('%qry%^|findstr /L /I /C:"Server 2003"') do ( @echo %%a REG ADD "\%%a%key%" /V DisableWERLogging /T REG_DWORD /D %data% /F @echo)endlocal
About the Author
You May Also Like