Subscribe to Windows IT Pro
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

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