JSI Tip 8827. How can I disable the extra information that Windows Server 2003 Service Pack 1 records after a print spooler crash?

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 off
setlocal
set data=1
if /i \{%1\}==\{E\} set data=0
set qry=dsquery * domainroot -filter "(&(objectCategory=Computer)(objectClass=Computer))" -attr name operatingSystem -Limit 0
set key=HKLM\System\CurrentControlSet\Control\Print
for /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



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish