All, Technology

Exchange 2003 Application Startup / Shutdown

Below are the commands to include in “Shutdown” & “Startup” batch files. These commands will fully shutdown / startup all Exchange 2003 services cleanly and in the correct order. These files are useful in a number of situations, particularly;

1. Pre server shutdown: Windows Server is not very good (OK, it’s terrible!) at managing these services effectively, to circumvent this run the “shutdown” batch file to conclusion before actually telling windows to shutdown / reboot.

2. Pre manual backup / mailstore defragmentation / logfile management etc: Again, once the “shutdown” script is run you are safe in the knowledge that the Exchange 2003 data files in question are not being used by the system.

3. Post error / bug: Following any error event / issue with Exchange 2003 it is often wise, in my experience, to fully shutdown and then re-start all Exchange services to ensure all services are working correctly and have been initialised in the correct sequence to avoid service-to-service communication / reliance problems.

The Scripts;

Shutdown; (E2K3-Shutdown.bat)
net stop “Microsoft Exchange Information Store” /y
net stop “Microsoft Exchange System Attendant” /y
net stop “Microsoft Exchange IMAP4” /y
net stop “Microsoft Exchange Routing Engine” /y
net stop “Microsoft Exchange POP3” /y
net stop “Microsoft Exchange Management” /y
cmd /k

Startup; (E2K3-Startup.bat)
net start “Microsoft Exchange Information Store”
net start “Microsoft Exchange System Attendant”
net start “Microsoft Exchange MTA Stacks”
net start “Microsoft Exchange IMAP4”
net start “Microsoft Exchange Routing Engine”
net start “Microsoft Exchange POP3”
net start “Microsoft Exchange Management”
cmd /k

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.