Configure Windows Service Recovery Options from Command-Line

Configure Windows Service Recovery Options from Command-Line with the Service Control Manager tool SC.exe

Read the Configuration

The SC tool displays the Recovery Information using the syntax sc qfailure “Service Name”.

Write the Configuration

To write the configuration, you can use the following example that also includes possible command line parameters and additional arguments for the powershell script to be executed.

Windows Service - Recovery Options

The documentation of SC.exe can be found on TechNet

1530 Total Views 4 Views Today
Please follow and like:
My RSS Feed
Follow me by Email
Like it on Facebook
Share on Google+
Share on Twitter
Share on LinkedIn
Share on Xing

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)