How to extract a text list from the Windows Program and Features?

15

6

From the Windows Program and Features manage screen(above) I want to create a text file that contains all installed programs:

enter image description here

How can I automate this work?

I'm thinking about some script that would read some registry keys and put the results into a txt file, any ideas?

Diogo

Posted 2011-09-16T12:26:01.707

Reputation: 28 202

Answers

17

Here are two possible solutions:

Powershell:

 Get-WmiObject Win32_Product | Sort-Object Name | Select Name,version,Vendor |export-csv myprogramlist.csv

WMIC:

wmic product get name,version,vendor >myprograms.txt

uSlackr

Posted 2011-09-16T12:26:01.707

Reputation: 8 755

6Just be aware that the Win32_Product class which both of these solutions rely on only registers the install information for products that install via the Microsoft Installer service (MSI). On the other hand, every product that is listed in the Add/Remove programs and features applet have a registry entry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall – EBGreen – 2011-09-16T13:55:50.650

1

You can check this article. There might be an option. You can take a snapshot of the page and convert that to text. The article explains it in details.

Update 1: You can also take help of WMI product class to export all programs to csv. WMI product class contains the details about install apps. Using select * you can fetch data from there and store in csv. Read this example to know how to export control panel to csv.

Note: I am the developer of this script

Mamuni

Posted 2011-09-16T12:26:01.707

Reputation: 11

While it's nice to have a link to credit your sources, you should provide some amount of details in case the link breaks. Typically, just a link will earn downvotes. – MattPark – 2013-05-30T20:07:50.140