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
0 comments
Hide comments