How do I start a disabled windows service from command line?
NET START "Service" doesn't work on disabled services
Press the Win + R keys on your keyboard, to open the Run window. Then, type "services. msc" and hit Enter or press OK. The Services app window is now open.
In the list of services select the service Print Spooler and open its properties. Select the startup mode (Automatic) and click Edit Security. Using the Add button, add a user account or a group to grant permissions to. In our case, Start, stop and pause permission is enough.
You can launch services by opening Start, typing: services then hitting Enter. Or, you can press Windows key + R, type: services. msc then hit Enter. Services feature a very basic interface, but within it are hundreds of services, most bundled with Windows 10 and others added by third parties.
open command line(cmd.exe) and use this:
sc config "ServiceName" start= auto
Becareful, it's not start = auto
or start=auto
or start =auto
.
You can use sc.exe
utility to enable the service and optionally start it as well.
To enable a service you need to set any start option except disabled:
sc.exe config [ServiceName] start= [option]
start= {boot | system | auto | demand | disabled | delayed-auto}
Specifies the start type for the service.
boot - Specifies a device driver that is loaded by the boot loader.
system - Specifies a device driver that is started during kernel initialization.
auto - Specifies a service that automatically starts each time the computer is restarted and runs even if no one logs on to the computer.
demand - Specifies a service that must be started manually. This is the default value.
delayed-auto - Specifies a service that starts automatically a short time after other auto services are started.
Then you can manually run it by executing:
sc.exe start [ServiceName]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With