Service Controller "sc create" Command on Windows 8


How to use Service Controller "sc create" command to create a new services on Windows 8?



Service Controller "sc create" command can be used to create a new service on Windows 8. Before running this command, you need to prepare the following minimum information:

  • Service Name: A single work to name the new service.
  • Binary Path: The path name where the executable program for new service is located.
  • Display Name: A short name for the new service.

For example, the following command creates a new service called "CalcService":

C:\users\fyicenter>sc create CalcService DisplayName= Calculator
   binPath= c:\windows\system32\calc.exe

[SC] CreateService SUCCESS

C:\users\fyicenter>sc query CalcService

   TYPE               : 10  WIN32_OWN_PROCESS
   STATE              : 1  STOPPED
   WIN32_EXIT_CODE    : 1077       (0x435)
   SERVICE_EXIT_CODE  : 0  (0x0)
   CHECKPOINT         : 0x0
   WAIT_HINT          : 0x0

Note that the "=" sign is part of the command option name, and you must enter a space between the option name and the option value.


"sc.exe" - Service Controller Command on Windows 8

⇒⇒Windows 8 Services Tutorials

2016-12-18, 3082🔥, 0💬