Configure Windows Service

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!

Quick example:

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.

Source: Microsoft TechNet

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s