Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 12 down vote accepted

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
share|improve this answer
    
It works, thanks you very much. – Diogo Sep 16 '11 at 12:44
2  
Just 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 Sep 16 '11 at 13:55

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

share|improve this answer
    
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 May 30 '13 at 20:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .