Return to article
How can I stop and start services from the command line?
A Web Exclusive from FAQ for Windows
March 05, 1999
John Savill
Various
InstantDoc #15157
FAQ for Windows
A. This can be accomplished using the
net stop <service name>
net start <service name>
A full list of the exact services is found in the registry (run
regedit.exe) under the
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services key.
Alternatively, you can perform the stop and start using the name that is
showed in the Services Control Panel applet by putting the name in quotes,
i.e.
net stop "<service>"
net start "<service>"
 |
|
Reader Comments
|
Exactly what I was looking for. New I could do it, just wasn't sure how.
Thanks.
Gary H. Holabird -October 28, 2000
Hi. I think your site is great, and use it all the time. I would like to contribute a piece of information to the following Question: How Can I Stop and Start services from the command line?
It may be helpful to mention that on Windows 2000, the "c:\>net start" command will list all the services which are currently running on the machine. On Windows NT you can use "c:\>sclist /R (for running) /S (for stopped)"
Thanks,
Sam La Grasta
samlagrast@msn.com
slagrasta@novadigm.com
Sammy La Grasta -February 28, 2001
was looking around for starting a service from the command line... i had totally forgotten about the net command!! you just reminded me... thanks...
Sham -September 11, 2003
This is helpful. Is there a way to set the startup value for a service (changing it from manual to automatic, for example) ?
John Crawford -June 29, 2004
How would you stop a service in another machine using the command line.
armando_moran -July 29, 2004
netsvc from the NT resource kit will allow you to start and stop services on a remote machine.
Anonymous User -November 01, 2004
How about Starting a service remotely?
Anonymous User -December 06, 2004
Thank you. This is exactly what I am looking for.
Anonymous User -February 08, 2005
Can you start/stop services on remote computers in windows 2000/xp/2003?
Anonymous User -February 22, 2005
3.
1415926535 8979323846 2643383279 5028841971 6939937510
5820974944 5923078164 0628620899 8628034825 3421170679
8214808651 3282306647 0938446095 5058223172 5359408128
4811174502 8410270193 8521105559 6446229489 5493038196
4428810975 6659334461 2847564823 3786783165 2712019091
4564856692 3460348610 4543266482 1339360726 0249141273
7245870066 0631558817 4881520920 9628292540 9171536436
7892590360 0113305305 4882046652 1384146951 9415116094
3305727036 5759591953 0921861173 8193261179 3105118548
0744623799 6274956735 1885752724 8912279381 8301194912
9833673362 4406566430 8602139494 6395224737 1907021798
6094370277 0539217176 2931767523 8467481846 7669405132
0005681271 4526356082 7785771342 7577896091 7363717872
1468440901 2249534301 4654958537 1050792279 6892589235
4201995611 2129021960 8640344181 5981362977 4771309960
5187072113 4999999837 2978049951 0597317328 1609631859
5024459455 3469083026 4252230825 3344685035 2619311881
7101000313 7838752886 5875332083 8142061717 7669147303
5982534904 2875546873 1159562863 8823537875 9375195778
1857780532 1712268066 1300192787 6611195909 2164201989
Anonymous User -May 09, 2005
hi
Anonymous User -June 04, 2005
To do this remotely you can use the SC...
sc \\remotehost command service
For example
sc \\myserver start MyService
will start the "MyService" service on \\myserver
You can use the query command if you want to know the current status of the service..
There's a lot of other switches but I mostly use start, stop, query.. try using sc alone to see other options..
jaas666 -April 14, 2009
|