Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

March 05, 1999 12:00 AM

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

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

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


Related Content:

ARTICLE TOOLS

Comments
  • Simon
    2 years ago
    Apr 23, 2010

    I need to know how to allow a group of users who are not local admins to be able to stop and restart specific services on a window 2008 and windows 2003 server. Ideally would be a script or batch file that they could execute that would allow them to do this. Any help on this would be greatly appreciated.

  • Simon
    2 years ago
    Apr 23, 2010

    I need to know how to allow a group of users who are not local admins to be able to stop and restart specific services on a window 2008 and windows 2003 server. Ideally would be a script or batch file that they could execute that would allow them to do this. Any help on this would be greatly appreciated.

  • Muhammad Muzzamil
    2 years ago
    Jan 23, 2010

    Thanks a lot. This information served my query :)

  • Juan
    3 years ago
    Apr 14, 2009

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

  • Anonymous User
    7 years ago
    Jun 04, 2005

    hi

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

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.