Uninstall by name

Here is the code I use to uninstall applications based on their name instead of MSI product code. This is nice because it makes it version independent for most applications. The %% is a wildcard that behaves the same as * in most situations. If you don't need it in the middle of the name you have to put it at the end for this command to work.

wmic product where "name like 'adobe flash player%%activex'" call uninstall /nointeractive
wmic product where "name like 'adobe reader%%'" call uninstall /nointeractive
4

Comments

1 comment
Date Votes
  • Thanks for letting us know about this Colby.

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post