Uninstalling a Program – Powershell – SCCM

Here’s a quick script to uninstall a program using Powershell. I’ve found this useful when attempting an uninstall with SCCM. $lync=get-wmiobject -class win32_product | Where-Object {$_.name -like ‘microsoft lync*’} $lync.uninstall() If you’d like to change the program, just change the search string name {$_.name -like ‘*whatever*’} …Also, it’s worth noting that this installs everything with