Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 6 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
1  
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. –  khaki54 May 30 '13 at 20:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.