Enable services using batch script

sc <server> config [service name] start <option>

The option can be set as disabled, auto or demand.

Example as below:
sc config “wuauserv” start= auto
sc config “BITS” start= demand

Save it as .bat file and ready to execute.

    • Trust
    • August 10th, 2012

    This works great for me (without the quotes around the service name) but it is there something I can add to start the service as well?

    • To start the services, go ahead and run this command:
      Net start servicename

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: