Sc stop


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

Sends a STOP control request to a service.

Caution

Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

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

Syntax


Copy Code

sc [<ServerName>] stop <ServiceName>

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.

/?

Displays help at the command prompt.

Remarks

Not all services can be stopped.

Examples

To stop the TAPISRV service, type:


Copy Code

sc stop tapisrv

Additional references

Command-Line Syntax Key