Controlling a Service Using SC

The Platform SDK contains a command-line utility, SC.EXE, that can be used to control a service. Its commands correspond to the functions provided by the SCM. The syntax is:

sc ServerName [command] ServiceName

ServerName
Optional server name. Use the form \\ServerName.
Command
start
pause
interrogate
continue
stop
control
ServiceName
The name of the service, as specified when it was installed.