Search code examples
windowswindows-services

How do I start multiple Windows Services at once, with one command?


My primary computer for programming is the same computer I use for gaming etc. So to increase speed while gaming I turned off services like Apache, MySQL, Subversion etc. from starting at boot as I use it about 50/50 for gaming/programming.

This is fine most of the time but it's a bit of a nuisance to start them all separately.

Could someone show me how to write a batch file or something similar to start all the services?


Solution

  • Well you can write a batch file like

    net start "Service Name"
    

    There should be a way to dependency link the services together also, so when one starts all the others will too. I'll see if I can find the switch to do that.

    EDIT:

    I haven't tried this, but this should tell you where to find in the registry to make the services dependent on each other and all start automatically:

    http://www.softwaretipsandtricks.com/windowsxp/articles/490/1/Removing-Service-Dependencies