Automate service restart

TekiSreelakshmi used Ask the Experts™
We have recently installed a 3rd party software that installed a Window Service on the server. However the service is not stable and stops by itself randomly. We have to restart it manually. The vendor says a patch is on the way. But in the meanwhile we would like to automate the process of restarting it.
I created a batch job that starts the service. Is a way that we can trigger this batch job on the event of the service stopping?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
instead of creating batch
go into your start-> run>services.msc
right click on the service name -> properties, do as shown in the picture.
just select restart the service in all failure scenarios.
Great.. Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial