Download PSTools: https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

Create a text file containing IP Addresses or hostnames (one per line). I will save this file as D:\MSI_Deploy\hosts.txt

172.35.20.101
172.35.20.102
172.35.20.103
172.35.20.104

Create a share with read and execute permissions for Everyone (or, if you want to be more secure, just for those hosts) and put there the MSI file. Eg. \\172.35.20.100\Kits\setup.msi

Execute the following command:

PsExec @D:\MSI_Deploy\hosts.txt -u <username> msiexec.exe /i "\\172.35.20.100\Kits\setup.msi" /q

#Replace <username> with a user with administrative permissions on the hosts.

The result should be something like this:

\\172.35.20.101:

msiexec.exe exited on 172.35.20.101 with error code 0.
\\172.35.20.102:

msiexec.exe exited on 172.35.20.102 with error code 0.
\\172.35.20.103:

msiexec.exe exited on 172.35.20.103 with error code 0.
\\172.35.20.104:

msiexec.exe exited on 172.35.20.104 with error code 0.

Leave a Reply