Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)

Windows: Uninstall Programs Via Command Line (Sudo Control Panel > Programs and Features > Uninstall)

I love when Windows command line tools are actually useful and friendly.  wmic is a rare one that fits the bill.  I use the following command to uninstall programs silently (using Java as an example).

Find The Program Name

Run this command first to get the list of programs you can uninstall:

wmic product get name

Call The Uninstaller

Then, call the uninstaller in silent mode with this command:

wmic product where name="Java 7 Update 75" call uninstall /nointeractive
wmic product where name="Java 7 Update 75 (64-bit)" call uninstall /nointeractive

The name must match exactly and be kept in quotes.  This can be run from Altiris to automatically uninstall programs.