Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping services from batch file 1

Status
Not open for further replies.

Paulreg

IS-IT--Management
Jul 9, 2003
208
0
0
GB
Hi

Does anyone know what commands I can write into a batch file to start and stop services on a W2K server ?
I am having to stop a service manually for backups to run and I would like to automate this.

Many thanks

Paul
 
I stop Exchange services so I can backup each night then restart using the net start command.
As below


net stop "Microsoft Exchange Event" /y
net stop "Microsoft Exchange IMAP4" /y
net stop "Microsoft Exchange Information Store"/ y
net stop "Microsoft Exchange Management" /y
net stop "Microsoft Exchange MTA Stacks" /y
net stop "Microsoft Exchange Routing Engine" /y
net stop "Microsoft Exchange POP3" /y
net stop "Microsoft Exchange Site Replication" /y
net stop "Microsoft Exchange System Attendant" /y

MCP
 
net stop and net start - perfect

Thanks

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top