Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Sc failureflag

Published: April 17, 2012

Updated: April 17, 2012

Applies To: Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Vista

Specifies whether recovery actions will be triggered when a service stops as the result of an error.

For examples of how to use this command, see Examples.

sc [<ServerName>] failureflag [<ServiceName>] [<Flag>]


Parameter Description


Specifies the name of the remote server on which the service is located. The name must use the Universal Naming Convention (UNC) format (for example, \\myserver). To run SC.exe locally, omit this parameter.


Specifies the service name returned by the getkeyname operation.


The default value is 0 (no action). If this parameter is set to 1, and if the user has already configured recovery actions for service failures, the recovery actions will also be triggered if the service stops because of an error.


Displays help at the command prompt.

Set this flag if your service fails but can usually be restarted without any problem.

To trigger an existing recovery action for service failures, type:

sc failureflag flag=1

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft