Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

How do you run an uninstall & install Powershell Script? - See more at: http://w

$
0
0

I have a silent uninstall & install script that I need to run. My question is how do I/can I run them both so it uninstalls the old version of the Software followed by installing the new version silently in the backgroup on the user machine? My eventual goal is to deploy the silent scripts via Group Policy in AD to about 80-100 users. Script is below, thank you!

SILENT UNINSTALL: Get-WmiObject -Class Win32_Product | Where-Object {$_.Name -eq "SOFTWARE NAME"} | foreach-object -process {$_.Uninstall()}

SILENT INSTALL:

$arguments="/quiet"

Start-Process "\\SOMELOCATION\SOFTWARE.msi" $arguments

- See more at: http://www.itninja.com/question/how-do-you-run-an-uninstall-install-powershell-script#sthash.bDD2ZIpK.dpuf


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>