Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Remove windows service from command line?

I want to disable a windows service but I don't want to:

  1. open the "Services" management console
  2. scroll to the name of the service
  3. right click Properties (or double click)
  4. change the Startup Type: to disabled
  5. Apply
  6. click "Stop" button
share|improve this question
services.msc, type the name of the service, hit right click menu key, hit key to select stop, hit enter. – Tom Wijsman Aug 10 '12 at 15:04
3  
Not a duplicate as OP intends to stop and disable automatic start – Alfabravo Aug 10 '12 at 15:06
@TomWijsman usually one means no mouse when specifying "command line" therefore navigating the GUI from the keyboard doesn't answer my question – Kevin Driedger Aug 15 '12 at 19:12
@KevinDriedger: I have suggesting a way to shorten the steps, takes less keys than the answers. – Tom Wijsman Aug 15 '12 at 19:29

marked as duplicate by Diogo, Tom Wijsman, Gnoupi, Mokubai, Randolph West Aug 11 '12 at 3:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

sc config "Name of Service" start= disabled
sc stop "Name of Service"

The space after the "start= " is important

share|improve this answer

In addition to Kevin's answer, if you need to control more than one service, or select them based on some criteria, you can use wmic. Simple use to stop only 1 service (Sqlwriter in my example) would be:
wmic service where name='SQLWriter' call ChangeStartmode Disabled

but the tool is much more powerful, for example to set disabled mode for all services with caption starting with SQL and not already disabled you could say:

wmic service where "caption like 'SQL%' and  Startmode<>'Disabled'" call ChangeStartmode Disabled
share|improve this answer

Quoting from KB248660:

The Reg.exe utility from the Microsoft Windows NT Resource Kit must be installed on your computer.

To change the startup value for a service on a local computer by using the command line, type the following at the command prompt and then press ENTER: REG UPDATE HKLM\SYSTEM\CurrentControlSet\Services\servicename\Start=X where servicename is the name of the service as it appears in the registry and X is either a 2, a 3, or a 4 (representing automatic startup, manual startup, or disabled, respectively).

To change the startup value for a service on a remote computer by using the command line locally, type the following at the command prompt and press ENTER: REG UPDATE HKLM\SYSTEM\CurrentControlSet\Services\servicename\Start=X \servername where servicename is the name of the service as it appears in the registry, X is either a 2, a 3, or a 4 (representing automatic startup, manual startup, or disabled, respectively), and servername is the name of the remote server.

To see how the service name appears in the registry, view the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

share|improve this answer
May I ask, why the downvote? – darnir Aug 10 '12 at 18:29

Not the answer you're looking for? Browse other questions tagged or ask your own question.