o-s , security

Simple Shutdown script for an Exchange Server

May 2, 2008

@echo off
net stop MSExchangeES
net stop IMAP4Svc
net stop POP3Svc
net stop RESvc
net stop MSExchangeSRS
net stop MSExchangeMGMT
net stop MSExchangeMTA
net stop MSExchangeIS /Y
net stop MSExchangeSA /Y
!
!
net stop “Computer Browser””
net stop “Messenger”
net stop “Net Logon”
net stop “NT LM Security Support Provider”
net stop “Plug and Play”
net stop “Protected Storage”
net stop “Remote Access Autodial Manager”
net stop “Server”
net stop “Spooler”
net stop “TCP/IP NetBIOS Helper” /y
net stop “Workstation”

if %1==reboot goto reboot
shutdown /l /y /t:0
exit
:reboot
shutdown /l /y /r /t:0
exit