I need a solution
I am looking for batch file or script to check the Microsoft Exchange services automatically and restart the services when services hung or stop work.
Please this case important
net stop MSExchangeADTopology /y
net stop MSExchangeIS /y
net stop W3SVC /y
net start MSExchangeADTopology /y
net start MSExchangeIS /y
net start MSExchangeAntispamUpdate /y
net start MSExchangeEdgeSync /y
net start MSExchangeFDS /y
net start MSExchangeMailSubmission /y
net start MSExchangeMailboxAssistant
net start MSExchangeRepl /y
net start MSExchangeSearch /y
net start MSExchangeServiceHost /y
net start MSExchangeTransport /y
net start MSExchangeTransportLogSear
net start W3SVC /y
net stop msexchangesa /y
net start msexchangesa /y
net start msexchangemta /y
net start msexchangeis /y
The /y isn't necessary on all, but I usually put it just in case I've missed something. The biggest thing is to learn to do these yourself so you can modify them as appropriate. It is quite easy. Just go to the services on the server (start, run, services.msc) and when you see a service, double click it. Look for the service name, which is what you will need to put in the batch file for restarting services. It is really just trial and error. I've pasted in scripts I've used on a couple of different servers, but what you include depends on what services you are using (POP3, IMAP, etc).
this is the right solution
Be seen. Boost your question’s priority for more expert views and faster solutions
Tackle projects and never again get stuck behind a technical roadblock.
How it Works
Plans and Pricing
Become an Expert
Who We Are
Join Our Team
Hall of Fame
Experts Exchange, LLC.
All rights reserved. Covered by US Patent.