HP OpenView Storage Mirroring User Guide (360226-002, May 2004)

B - 2
Script Sample
The following batch file might be used to stop and start Microsoft Exchange services on a Windows machine. This file is just
a sample to demonstrate the kinds of commands and functions you can perform using scripts. You will need to modify this
script to work in your environment and to achieve the desired outcome.
SAMPLE_NT_POSTOVER.BAT
rem The following command sends a message to the network administrator
rem You need to insert the network administrator’s computer name for
rem <computername>
net send <computername> Source has failed. Failover is starting.
rem These commands start the initial services to run the patch
Net Start "Microsoft Exchange System Attendant"
Net Start "Microsoft Exchange Directory"
rem These commands patch the database
cd \
cd exchsrvr
cd bin
isinteg -patch
rem This command stops the services
Net Stop "Microsoft Exchange System Attendant" /y
rem These commands start the services
Net Start "Microsoft Exchange System Attendant"
Net Start "Microsoft Exchange Directory"
Net Start "Microsoft Exchange Message Transfer Agent"
Net Start "Microsoft Exchange Information Store"
Net Start "Microsoft Exchange Event Service"
rem The next command is for Exchange Version 5.0 only
rem Remove the rem characters on the last line if you want this line to
rem execute
rem Net Start "Microsoft Exchange Directory Synchronization"