Software collection

Hi,

I'm looking for at solution that do a software collection on the computer and outputs the result in a CSV file.

Br
QC20NAsked:
Who is Participating?
 
ReneGeCommented:
Tested on XP Pro:

wmic /output:%~dp0\Output.csv product get caption,version /format:csv
0
 
rgautierCommented:
From this page: http://msdn.microsoft.com/en-us/library/aa394588(v=vs.85).aspx

comes the following code - which should do what you want.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" _
    & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
    ("Select * from Win32_Product")

For Each objSoftware in colSoftware
    Wscript.Echo "Name: " & objSoftware.Name
    Wscript.Echo "Version: " & objSoftware.Version
Next
0
 
rgautierCommented:
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
QC20NAuthor Commented:
But this collect HW. I was interested in SW collection.
0
 
ReneGeCommented:
You asked the list of programs.  Therefore, there is only one column.

So here, the only thing that will look like a csv output file will be the extension.

wmic product get caption>C:\output.csv
0
 
QC20NAuthor Commented:
Not excat what I had in mind. But it is useful.
0
 
ReneGeCommented:
Glad i could help
0
 
QC20NAuthor Commented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.