Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start a disabled windows service?

How do I start a disabled windows service from command line?

NET START "Service" doesn't work on disabled services

like image 882
Nevin Mathai Avatar asked May 04 '10 18:05

Nevin Mathai


People also ask

How do I start a Windows service?

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.

How do I start Windows service without admin rights?

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.

How do I start services in Windows 10?

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.


2 Answers

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.

like image 108
mkb Avatar answered Sep 30 '22 13:09

mkb


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]
like image 40
Andrey Avatar answered Sep 30 '22 12:09

Andrey