JSI Tip 8790. How do I disable the Shutdown Event Tracker on Windows Server 2003 member servers?

I previously described how to disable the Shutdown Event Tracker on Windows Server 2003 domain controllers.

Using MemberServer.bat, I have scripted SDETMSOFF.BAT to disable the Shutdown Event Tracker on Windows Server 2003 member servers.

NOTE: MemberServer.bat uses the DSQUERY command.

NOTE: SDETMSOFF.BAT uses REG.EXE built into Windows XP and Windows Server 2003, or REG.EXE from the Windows 2000 Support Tools on the CD-ROM.

SDETMSOFF.BAT requires no parameters.

SDETMSOFF.BAT contains:

@echo off
setlocal ENABLEDELAYEDEXPANSION
for /f "Tokens=*" %%m in ('MemberServer') do (
 set cv=N
 for /f "Tokens=2*" %%r in ('reg query "\\%%m\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion^|find "REG_SZ"') do set cv=%%s
 if "!cv!" EQU "5.2"  REG ADD "\\%%m\HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /V ShutdownReasonOn /T REG_DWORD /D 0 /F
)
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