Sc control Command in Windows server 2008
In this article I am going to explain about sc control command in windows server 2008 operating system.
Introduction
The operating system sc control command is used to send a control to a service.
Syntax of Sc control command
sc [<ServerName>] control [<ServiceName>] [{paramchange | netbindadd | netbindremove | netbindenable | netbinddisable | <UserDefinedControlB>}]
|
Parameters in Sc control command
It contains following parameter, which is given below:
Parameter |
Description |
<ServerName> |
It specifies the name of the remote server on which the service is installed. |
<ServiceName> |
It specifies the service name. |
{paramchange | netbindadd | netbindremove | netbindenable | netbinddisable | <UserDefinedControlB>} |
It specifies a control to be sent to a service. |
Example of Sc control command
sc \\mcnserver2 control Power
|
Output:
