Stopping SharePoint services on multiple servers

Today I needed to move some SharePoint databases. This needed to be done on 2 different farms, but I did not feel the need to logon to every SharePoint server in order to stop every service. So I wrote a little PowerShell script. I tested this script on multiple environments. I’m not giving guarantees. Advertisements