Windows comes with a command line version of the Management Instrumentation (WMIC).To get the list of all installed programs in a text file, simply enter the following command in a prompt:
wmic product > c:product.txt
To get a list of installed apps on a remote PC you can do the command:
wmic /node:”PC NAME” product list
The results are easily imported into Excel.
Courtesy of Q&A: Dos command to list all installed programs | TechRepublic.