I am trying to uninstall a Program via Power Shell but I am getting an error "You cannot call a method on a null valued expression.
PS C:\Users\user> $App = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "CVF_x64"}
PS C:\Users\user> $App.Uninstall()
You cannot call a method on a null-valued expression.
At line:1 char:1
+ $App.Uninstall()
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
The program is in Programs and Features on control panel, see attached picture below. List of Apps on Control Panel
Powershell List of Apps CVF Doesn't show up in Powershell for some reason
$Apphas something in it?