windows installer - How do I (un)install an application remotely using PowerShell 2.0? -
How do I use PowerShell to install / uninstall locally, but how can I run it on another server I network and same OS version?
$ product = go-WMIObject -Class Win32_Product -Filter "name = 'MyMSI'" $ product.Uninstall ()
or
$ product = go-WMIObject-list | ? {$ _. Name - AQ "Win32_Product"} $ product.Install ("C: \\ MyMSI.msi")
You can still use those lines - to install and install a computer - by using a computer username and specifying the name of the computer. To install you need to copy the software to the local file system and specify that in the command
Comments
Post a Comment