So I needed to setup recovery options for a windows service
Basically I wanted all 3 recovery options to set to restart
SC to the rescue!
Local Service Change
sc failure DHCP actions= restart/12000/restart/120000/restart/120000 reset= 86400
Remote Service Change
sc \\Server-01 failure DHCP actions= restart/120000/restart/120000/restart/120000 reset= 86400
The above examples will set the DHCP service recovery options (1,2 & 3) to restart
In the coming days I will show you how this is used in a real-life example.