Ask the Expert

Is there a script to auto-shutdown and restart Exchange Server before a nightly NT backup?

Do you know of a script I can write to shutdown MS Exchange Server before a nightly Windows NT backup on NT 4.0 SP6a OS, and to restart MS Exchange?

    Requires Free Membership to View

You didn't provide any details on your environment, but there are command-line methods you can use to stop and/or start services. If this is being done locally, you would use NET STOP or NET START. For remote services, you need a Resource Kit tool called NETSVC or SC, both of which can be used to stop/start services remotely.

Below is a sample batch file for stopping services (which will likely need to be modified to account for the services you are actually using).

net stop MSExchangeMSMI
net stop MSExchangePCMTA
net stop MSExchangeFB
net stop MSExchangeDX
net stop MSExchangeIMC
net stop MSExchangeMTA
net stop MSExchangeIS
net stop MSExchangeDS
net stop MSExchangeSA

To start these same services, you would use this batch file:

net start MSExchangeSA
net start MSExchangeDS
net start MSExchangeIS
net start MSExchangeMTA
net start MSExchangeIMC
net start MSExchangeDX
net start MSExchangeFB
net start MSExchangePCMTA
net start MSExchangeMSMI

For more information, click here. Also, you might consider taking online backups. This way, Exchange can still be available to your users during the backup.

Hope this helps.


This was first published in January 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: