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!!