You can list all products and their corresponding Product IDs with the following command:
wmic product get name, IdentifyingNumber
It may take a couple minutes to run and gather the info depending on how many programs you have installed. Once complete, it will output a list like:
{789A5B64-9DD9-4BA5-915A-F0FC0A1B7BFE} Java Auto Updater
{26A24AE4-039D-4CA4-87B4-2F03217071FF} MSXML 4.0 SP2
{46F044A5-CE8B-4196-984E-5BD6525E361D} Apple Software Update
{AC76BA86-7AD7-1033-7B44-AB0000000001} Adobe Reader XI (11.0.10)
etc...
etc...
You can then run the following command to uninstall. Just replace the product key in the example with the product you want to uninstall:
msiexec /x {123A4B56-7CD8-9EF0-123G-H4IJ5K6L7MN8} /q
This should help: http://stackoverflow.com/questions/450027/uninstalling-an-msi-file-from-the-command-line-without-using-msiexec/1055933#1055933
– Kevin Panko – 2014-11-21T15:27:46.733Please note that this command only applies to programs using Windows Installer. It’s entirely possible (and likely!) for unwanted software to use another installer or even roll their own. – Daniel B – 2015-01-02T00:03:54.087