Restart services on remote server
Posted on 2011-03-01
I have five Windows 2003 SP2 servers running an application named HR1. The server names are App1, App2, App3, App4, App5. This app has about four services that it runs under per server, all named the same - Service1, Service2, Service3, Service4.
Sometimes, we need to restart three of these services after maintenance.
We do this by RDP'ing to App1 > Computer Manager > Services
Restarting those three services, then "connect to another machine" and restarting those services etc
As you can imagine, this is quite time consuming.
I would like to create a script that will do this automatically from my PC.
Does any know how I can do this? Is Powershell applicable here? Or do we need to use something else?