Jump to content

Script/CLI method to set service recovery options


adamt
 Share

Recommended Posts

Dear all,

Windows services have a neat little feature, where you can set recovery options, so that should a service crash, the service control manager will restart it.

I had hoped I might be able to write a .REG file with parameters for HKLM\SYSTEM\CurrentControlSet\Services\SVCname - ErrorControl and FailureActions, but the failure actions key isn't human-readable, and in any case, it doesn't appear that it does what I thought it did:

http://www.microsoft.com/technet/scriptcen...q.mspx?mfr=true

Any tips or pointers on how I can configure 3,000 servers to set SNMP to restart after a failure would be greatly appreciated.

Thanks,

Adam.

Link to comment
Share on other sites


Nevermind... it can be done with sc.exe - which is probably the first thing I should have looked at, but oh no.... I had to go firing up Regmon to see which keys were being enumerated, didn't I?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...