Link to home
Start Free TrialLog in
Avatar of jhalscott
jhalscott

asked on

I need a script written to restart MSExchangeMGMT service if it stops...

Hello all!
I am wondering if any of you out in techland can give me acces to a sample script to restart a service if it fails. I am using a managed server system that allows me to use scripts if certain issues arise. The script is basically as follows;

Step one - Check to see if the MSExchangeMGMT service is running.

Step two - If it is running do nothing, if it ISNT running then step three

Step Three - Restart the MSExchangeMGMT service.

The problem is for some reasion this service keeps stopping and I have to manually start it. Not sure what the cause for the stoppage is, no alerts, event log entries, etc; however it does just restart without issues until the next time it stops.

Any help would be greatly appreciated...I will keep scouring the knowledge base!!
ASKER CERTIFIED SOLUTION
Avatar of zoofan
zoofan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial