Sc boot

Applies To: Windows 7, 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 Vista

Indicates whether the last boot should be saved as the last-known good boot configuration.

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

Syntax

sc [<ServerName>] boot [{bad | ok}]

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.

{bad | ok}

Specifies whether the last boot was bad or whether it should be saved as the last-known good boot configuration.

?

Displays help at the command prompt.

Examples

To mark the last boot as the last-known good boot configuration, type:

sc boot ok 

To mark the last boot as bad, type:

sc boot bad

Additional references

Command-Line Syntax Key