Training
Module
Control Azure services with the CLI - Training
Learn the steps to install the Azure CLI locally, create a website, and manage Azure resources using the CLI.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The Windows 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 as follows.
sc.exe [<servername>] [<command>] [<servicename>] [<option1>] [<option2>] ...
To see the available commands, type:
sc
To see the syntax for a specific command, include a command. Here's an example:
sc start
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, don't use this parameter. |
<command> |
One of the following commands:
|
<servicename> |
The name of the service, as specified when it was installed. |
<option1> |
An optional parameter. |
<option2> |
An optional parameter. |
Training
Module
Control Azure services with the CLI - Training
Learn the steps to install the Azure CLI locally, create a website, and manage Azure resources using the CLI.