Sunday, February 21, 2010

Script to Stop and Start Exchange Services before and after Restarting Exchange Server.

Sponsored Links

Typically, exchange server will take much long time to shutdown and restart, if the exchange has a much more load, it will take around 25-30 minutes. The best way to avoid this waiting is to stop the exchange related services. If you stop the services before restarting exchange, both the shutdown and restart time will be faster than never before.
 As you know, there are 9 exchange related services are working for Microsoft Exchange Server 2003. But few of them will be started by default. 
Here is a very small script that you can run before initializing the restart process. Copy the script to notepad and then change the extension to “.bat”, and run it.

net stop MSExchangeES /y
net stop MSExchangeIS /y
net stop MSExchangeMTA /y
net stop MSExchangeSA /y
net stop POP3Svc /y
net stop IMAP4Scv /y

If POP3 and IMAP4 are not used by your exchange organization, you can eliminate the last two lines.
Also you can use similar batch file script to start all those services, after the exchange server restarted.
net start MSExchangeES /y
net start MSExchangeIS /y
net start MSExchangeMTA /y
net start MSExchangeSA /y
net start POP3Svc /y
net start IMAP4Scv /y

Copy the script to notepad and then change the extension to “.bat”, and run it.

blog comments powered by Disqus
Related Posts Plugin for WordPress, Blogger...