Powershell to execute simultaneous remote installation across multiple servers
Posted on 2014-12-09
I am trying to remotely execute an installation file (.msi) on about 500 windows servers.
I tested using psexec and it worked fine. I ran the following script which managed to install the msi which resides on my network share on both remote computers below. After the .msi there are some flags I need to specify since it is a static installation. Again the psexec script below works with on exception. It install this on one computer at a time. It executes on x.x.x.23 once its done it runs on x.x.x.24...
psexec \\172.22.173.23,172.22.173.24 -u MYUSERNAME -p MYPASSWORD msiexec.exe /i \\172.22.173.22\pack\splunkforwarder-6.2.0-237341-x64-release.msi RECEIVING_INDEXER="172.22.173.22:9997" WINEVENTLOG_APP_ENABLE=1 WINEVENTLOG_SEC_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 AGREETOLICENSE=YES /quiet
I was wondering if using powershell (more powerful) i can remotely execute this .msi file/flags on all my servers ( or perhaps 50 - 100 at a time) simultaneously?
I would rather have them call the .msi on the share concurrently rather than wait for one to be installed and then move on to the next server like when using psexec.
If its possible with powershell, where would I be able to find this script?