Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

I needed to remove a list of software from the computers

$
0
0

HI,

Due to new Voice Software upgrade we need to remove the old software and install the new software.

Old version got 7-9 modules but all start from same company name like adobe...

So how do i uninstall and write to share after its uninstall successfully.

i thought of set this script via GPO and reboot the PC's.

Found this script but some pc's not uninstall few of the applications?

$packages = @("package1", "package2", "package3")

foreach($package in $packages){

  $app = Get-WmiObject -Class Win32_Product | Where-Object {

    $_.Name -match "$package"

  }

  $app.Uninstall()

}


Viewing all articles
Browse latest Browse all 6937

Trending Articles