To uninstall a product on the local computer, use the following command:


get-wmiObject win32_product -Filter "Name like '%My application%'" | foreach-object { $_.uninstall() }

Advertisements