
$uninstallResult - will have the exit code.

$uninstall32 = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach ).InvokeMethod("Create","$unInstallPath") This is very fast if you just know the name of the program you want to uninstall. The reason it was written as below is because it modifies the MSI to uninstall without intervention, which is not always the default case when using the native uninstall string. If the application is not installed by MSI it does not work. To manually uninstall Qustodio on Mac: Go to your Launchpad and search for the Qustodio app Press and hold the app until it starts to shake Now, click the X and tap on the Delete button once the pop-window appear Next is to tap on your Finder then click Go and tap on Go to Folder.I believe it's -First 1 but I'm not sure. Look for Qustodio in the list and click on it.


If there are more matches than 1 for the below script, it does not work and you must append the PowerShell filter that limits results to 1. Method 2: Uninstall Qustodio via Apps and Features/Programs and Features.I have not used PowerShell since, but I remember observing some issues: EDIT: Over the years this answer has gotten quite a few upvotes.
