I understand I can use to following to install and unintall locally, but how can I push this onto another server that is on the same network and same OS version?
Thanks in advance.
(Get-WmiObject -Class Win32_Product -Filter "Name='MyMSI'" -ComputerName . ).Uninstall() (Get-WMIObject -ComputerName Hello -List | Where-Object -FilterScript {$_.Name -eq "Win32_Product"}).Install("C:\MyMSI.msi")