March 05, 1999 09:05 PM

How can I stop and start services from the command line?

Rating: (9)
Windows IT Pro
InstantDoc ID #15157

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


ARTICLE TOOLS

Add a Comment

Thanks a lot. This information served my query :)

mmluqman 1/23/2010 3:29:02 PM


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 4/14/2009 11:17:10 PM


hi

Anonymous User 6/4/2005 11:49:47 AM


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 5/9/2005 5:00:02 PM


Can you start/stop services on remote computers in windows 2000/xp/2003?

Anonymous User 2/22/2005 11:20:45 PM


Thank you. This is exactly what I am looking for.

Anonymous User 2/8/2005 8:51:16 AM


How about Starting a service remotely?

Anonymous User 12/6/2004 4:42:55 AM


netsvc from the NT resource kit will allow you to start and stop services on a remote machine.


Anonymous User 11/1/2004 8:48:48 AM


How would you stop a service in another machine using the command line.

armando_moran 7/29/2004 4:41:26 PM


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 6/29/2004 1:27:43 PM


You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

Related Resources

The Essential Guide to Infrastructure Consolidation
A Essential Guides by Hewlett-Packard
The Essential Guide to 64-Bit Server
A Essential Guides by AMD
More

advertisement

GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS

eBooks

Playbook for a Virtualized Datacenter | During challenging times, optimizing the IT infrastructure becomes imperative. Many organizations are looking to extend their virtualization efforts to encompass the entire datacenter. Get a step-through of your technology options and more.

White Papers

As the advances in USB devices have made them invaluable to most business users’, they have also exposed organizations to enormous risks. Learn how to easily enforce device/port control and data encryption policies without requiring new infrastructure and additional admin overhead.

WEB SEMINARS

Is Flexible Lockdown Possible? Join Darren Mar-Elia for this free web webinar exploring the various methods you should consider to protect and control your desktops while also understanding the impact on the end user community.
View Seminar On-Demand.

eLearning Series

Windows IT Pro brings the experts direct to you to share their real-world perspective, experience, and expertise. During each event, three sessions stream in real time, allowing you to learn, to ask questions, and to get solutions.
Upcoming event: SQL Server Consolidation

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.