POWERSHELL

Uninstall app with PowerShell

Uninstall app with PowerShell

I recently found myself in a situation on a client’s device where I needed to remove an application, but I was not a local administrator on the device. After evaluating options (like the slow WMI client), I turned to PowerShell. PowerShell provides a simple and fast way to search for and uninstall MSI-installed applications.

Skip to the code!

After exploring a few options, including the glacially slow WMI client, I decided to turn to my old friend PowerShell. And voilà! PowerShell provides a simple and fast way to search for and remove applications.