Start (or stop) multiple services on local machine
Posted on 2011-03-19
I need to create a script that will read a list of services and start them if stopped or vice versa.
Because of dependencies they will need to start (or stop) in a given order.
These include SQL, Sharepoint and www - I only want these services running when I want to use sharepoint.
So I'd like to run the script before going into sharepoint and then run it again when finished.
Services are named:
SQL Server (Sharepoint)
Sharepoint 2010 Administration
Sharepoint 2010 Timer
Worldwide web publishing service