Displays the actions that will be performed if the specified service fails.

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

Syntax

sc [<ServerName>] qfailure [<ServiceName>] [<BufferSize>]

Parameters

Parameter Description

<ServerName>

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.

<ServiceName>

Specifies the service name returned by the getkeyname operation.

<BufferSize>

Specifies the size (in bytes) of the buffer. The default buffer size is 1,024 bytes.

/?

Displays help at the command prompt.

Remarks

The qfailure command displays the following information about a service: SERVICE_NAME (service's registry subkey name), RESET_PERIOD, REBOOT_MESSAGE, COMMAND_LINE, and FAILURE_ACTIONS.

Examples

To display the actions that will take place if the RPCSS service fails, type:

sc qfailure rpcss

To display the actions that will take place if the RPCSS service fails, and to specify a buffer size of 2,048 bytes, type:

sc qfailure rpcss 2048

Additional references


Converted from CHM to HTML with chm2web Pro 2.85 (unicode)