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

Q

How to use Service Controller "sc start/stop" command to start or stop a services on Windows 7?

✍: FYIcenter.com

A

Service Controller "sc start [servicename]" command can be used to start a service on Windows 7. Service Controller "sc stop [servicename]" command can be used to stop a service on Windows 7.

For example, the following commands showing you how to stop and start a service called "dnscache":

C:\Users\fyicenter>sc query dnscache

SERVICE_NAME: dnscache
   TYPE               : 20  WIN32_SHARE_PROCESS
   STATE              : 4  RUNNING
                           (STOPPABLE,NOT_PAUSABLE,IGNORES_
   WIN32_EXIT_CODE    : 0  (0x0)
   SERVICE_EXIT_CODE  : 0  (0x0)
   CHECKPOINT         : 0x0
   WAIT_HINT          : 0x0

   
C:\Users\fyicenter>sc stop dnscache

SERVICE_NAME: dnscache
   TYPE               : 20  WIN32_SHARE_PROCESS
   STATE              : 3  STOP_PENDING
                           (NOT_STOPPABLE,NOT_PAUSABLE,...
   WIN32_EXIT_CODE    : 0  (0x0)
   SERVICE_EXIT_CODE  : 0  (0x0)
   CHECKPOINT         : 0x0
   WAIT_HINT          : 0x0

   
C:\Users\fyicenter>sc start dnscache

SERVICE_NAME: dnscache
   TYPE               : 20  WIN32_SHARE_PROCESS
   STATE              : 2  START_PENDING
                           (NOT_STOPPABLE,NOT_PAUSABLE,...
   WIN32_EXIT_CODE    : 0  (0x0)
   SERVICE_EXIT_CODE  : 0  (0x0)
   CHECKPOINT         : 0x0
   WAIT_HINT          : 0x7d0
   PID                : 2640
   FLAGS              :

 

Service Controller 'sc create' Command on Windows 7

Dumping All Running Services on Windows 7

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

⇑⇑ Windows 7 Services Tutorials

2016-07-06, 495👍, 0💬