The command will configure the recovery options for a given service as:
- First Failure: Restart the Service
- Second Failure: Restart the Service
- Subsequent failures: Take No Action (this is set to “take No Action” to avoid infinite restart attempts)
- Restart Fail Count After: 1 Day
- Restart Service After: 1 minute
SC failure <Service Name> actions= restart/60000/restart/60000/""/60000 reset= 86400
Example for Message Queuing service:
SC failure MSMQ actions= restart/60000/restart/60000/""/60000 reset= 86400