Dos - Stop service

By xngo on November 27, 2019

Stop a service

To stop a service from command line, run:

net stop "Service name"

REM -- OR
 
sc stop "Service name"

Kill a service

Find the process ID(PID) of your service.

sc queryex "Service name"

Kill the service using PID number.

taskkill /pid [pid number] /f

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.