How can I stop a service from the command line?

John Savill

March 4, 1999

1 Min Read
ITPro Today logo

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 "" ,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

to stop the service.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like