Service Controller "sc start/stop" Command on Windows 8

Q

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

✍: FYIcenter.com

A

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

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              :

 

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

⇒⇒Windows 8 Services Tutorials

2016-12-18, 2112🔥, 0💬