Sc failureflag Command in Windows Server 2008

In this article I am going to explain about Sc failureflag command in windows server 2008 operating system.
  • 2407

Introduction

The operating system Sc failureflag command is used to specifies whether recovery action will be trigged when a service stops as the result of an error.

Syntax of Sc failureflag command

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


Parameters in Sc failureflag command

It contains following parameter, which is given below:
 
Parameter Description
<ServerName> It specifies the name of the remote server on which service is located.
<ServiceName> It specifies the service name.
<Flag> It's default value is zero(0).

Example of Sc failureflag command

sc failureflag flag=1


Output:

sc-failureflag-in-Windows-Server-2008.jpg

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.