What is SC in command-line?

The Service Controller utility SC is a powerful command-line utility for managing Windows services. The command-line method of managing services has the advantage of being available for scripts. It also allows for quickly stopping and starting services for troubleshooting purposes.

What is the sc command in Windows?

The SC command communicates with the Windows Service Controller and installed services. When used with its create command option, you can use it to create a Windows service under which the Endeca Server will run. serviceName is the name of the Windows service to be created.

How do I start a SC service?

Enable service

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to enable a service and press Enter: sc config “SERVICE-NAME” start=auto.
  4. (Optional) Type the following command to start the service and press Enter:

What is SC exe used for?

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.

Where can I find SC exe?

system32
The sc.exe command comes with Windows XP and is in the system32 subdirectory of the Windows installation directory (usually either C:\windows\system32 or C:\winnt\system32).

What is SC exe QC?

sc qc ServiceName. Sc can help match up services in the Services node of Microsoft Management Console (MMC) with processes in System Monitor. If the binary name is Services.exe, the service shares the Service Controller process. The Services.exe program starts all services.

How do I create a service in services MSC?

Steps to create a user-defined service

  1. At an MS-DOS command prompt(running CMD.EXE), type the following command: Console Copy.
  2. Run Registry Editor (Regedt32.exe) and locate the following subkey:
  3. From the Edit menu, select Add Key.
  4. Select the Parameters key.
  5. From the Edit menu, select Add Value.
  6. Close Registry Editor.

What is sc config?

You typically use the Services GUI in Windows to configure a services start-up type, but you can also use the SC command to set the start-up type from the command line: sc config start= For example, sc config tlntsvr start=auto. automatically starts the tlntsvr service when you boot the system.

What is SC start?

SC sends the control to the service and then returns to the command prompt. This typically results in SC START returning the service in a state of START_PENDING. NET START will wait for the service it is starting to come to a fully started state before it returns control at the command prompt.

How do I stop SC exe?

To stop a windows service from an elevated DOS prompt, run:

  1. SC STOP
  2. SC STOP Spooler.
  3. SC START
  4. SC QUERYEX
  5. SC QUERYEX Spooler.
  6. SC CONFIG start= disabled.
  7. SC CONFIG UI0Detect start= disabled.

How do I make a Windows service executable?

How to create Windows service using sc command?

Create Windows Service. Open your command prompt and hit below command. You received a message saying “SUCCESS” once the service has successfully been created. sc.exe create binPath= . DisplayName= . Example,

What does Sc.exe do in command prompt?

Enter Microsoft’s SC.EXE – a versatile command-line utility built into Windows that can help you start, stop, restart or configure any Windows Service. Type SC at a command prompt to see the extensive set of options available: DESCRIPTION: SC is a command line program used for communicating with the Service Control Manager and services.

How to control a service using sc-win32 apps?

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 [ServerName] Command [ServiceName][option1][option2]… ServerName. Optional server name. Use the form \\ServerName.

What do you need to know about sc command?

Microsoft sc command. About sc. SC is a command line program used for communicating with the Service Control Manager and services. Availability. The sc command is an external command and is available in the below Microsoft operating systems. Sc syntax. sc [command] [service name]