Service Controller 'sc create' Command on Windows 7

Q

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

✍: FYIcenter.com

A

Service Controller "sc create" command can be used to create a new service on Windows 7. 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.
  • Dispaly 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

SERVICE_NAME: CalcService
   TYPE               : 10  WIN32_OWN_PROCESS
   STATE              : 1  STOPPED
                           (NOT_STOPPABLE,NOT_PAUSABLE,..
   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.

 

Service Controller 'sc delete' Command on Windows 7

Service Controller 'sc start/stop' Command on Windows 7

'sc.exe' - Service Controller Command on Windows 7

⇑⇑ Windows 7 Services Tutorials

2016-07-06, 6685🔥, 2💬