Windows – Disable a Windows service from the command line

serviceswindowswindows-services

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"

I don't want to remove a Windows service but instead, just disable it.

Best Answer

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

The space after the "start=" is important

You can see service name by double clicking a service on Services screen:

Service Name