Q: Uninstalling program using powershell I am trying to uninstall a program/application from system automatically using power shell. When I googled first, advice was to use get-wmiobject and then use uninstall() function.
Code I used:
$app = get-wmiobject -Class Win32_Product | where-object ($_Name  -Like "part of product name"}
$app.uninstall()

Error message:
Screen shot attached.

Solution tried: Most of the blogs mentioned that not running as administrator would be the reason for the problem. But, I tried running the code as the administrator and still getting the error message. Any help would be useful.
Thanks,
Manoj Kumar
