Use PowerShell to find application uninstall keys

Hi everyone

Answering Ravinder Singh, in his post on Linkedin Modern Endpoint Management (MECM | SCCM | Intune | AzureVD | Security | MacOS | iOS ) Group

I have used the following PowerShell Script to list all apps installed with their DisplayName, UninstallString, and other properties.

Feel free to tweak the script to use as detection method then to have a remediate that launches the Uninstall String command

The expected result of PowerShell

I’ve just tested the Deezer removal

  • Got the UninstallString : “C:\Users\thiagobeier\AppData\Local\Programs\deezer-desktop\Uninstall Deezer.exe” /currentuser
  • cmd.exe and run it (adding /S for silent) => “C:\Users\thiagobeier\AppData\Local\Programs\deezer-desktop\Uninstall Deezer.exe” /currentuser /S
  • checked Control Panel\Programs\Programs and Features (Deezer was gone) 🥷



Thiago Beier

One thought on “Use PowerShell to find application uninstall keys

  1. Pingback: Webfingers Blog

Comments are closed.