• subscribe
March 05, 1999 12:00 AM

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

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

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
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...