How can I stop a service from the command line?

A. To get a list of the running services enter the command

net start

(you can add > \[filename\] to the end to make it output to a file, i.e. net start > services.lst). You can then try to shutdown each of them by entering the command

net stop "<service name>" ,e.g. net stop "spooler". Some services will ask you to enter a y to confirm, and for these just add /y to the end.

You can also use the Resource Kit SC.EXE command, use

sc query

to get a list of the services, and then

sc stop <service name>

to stop the service.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.