Bu şekildeki bir command aradığım cevap olabilir mi?
Change a service's recovery settings
SC \\computername Failure servicename actions= restart/60000/restart/60000// reset= 120
This command will make a service restart after 1 minute (60000 milliseconds) on the first 2 failures, and take no action at further failures (to prevent infinite failing restarts, which might consume 100% CPU capacity); the failures counter will be reset after 2 minutes (120 seconds).