Discussion Locked

Schedule Stop and Start of NT Service

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need to schedule a stop of SQL and EXHCHANGE services on NT and W2K servers. I will then backup using Arcserve (don't want to use agents for sql and exchange).

When the backup is done, I need to schedule a start of the SQL and EXCHANGE service.

Please give exact commands to run from TASK SCHEDULER or WINAT.

Thanks!

8 replies

by martin_devlin

See the Exchange DR planning Part1 for details of off-line backups but this should do it:

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

net stop MSSQLServer
net stop SQLExecutive

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

net start MSSQLServer
net start MSSQLExecutive

Hope this helps.

by lpadron

Thanks for your help. One more question: Do you know where I can get STAND ALONE version of NT TASK SCHEDULER?

by mckaytech

Answer 1 has all the commands you'll need but what I've usually done is include all those commands in a batch file and then just schedule the batch file.

The best resource I've found for the Task Scheduler is the TechNet article #Q178706

paul

by doncurtis1

the First answer has all the commands But, Arcserv gives you the option to run a script before and after a job is completed. I have a script that it runs before it starts to backup and after the job is completed it runs another to restart my oracle Database.

by doncurtis1

in Arcserv Highlight your back up job
Click on the modify job button
Click the options button
Select the PRE/POST tab
this gives you an option to run a script before and after the backup job. It also has a wait time before executing the job. Isuggest you write the script to stop services and time how long it takes to shutdown services so you can put in an appropriate amount of time before the backup kicks off

This discussion is closed to new replies.