Answer the question
In order to leave comments, you need to log in
How can I configure the service to automatically restart after a failure?
How to set up an automatic restart of the service after failures after 1 minute, for example, using the SC utility or an alternative out of the box, which could be used in a bat file. It is planned to use only a bat file, without related utilities.
Answer the question
In order to leave comments, you need to log in
Thanks everyone, I already found the answer to my question, maybe it will be useful to someone:
sc failure "ServiceName" reset= 0 actions= restart/10000
reset is written in seconds Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question