OK yes I saw that in the community. You can use:
wmic product get name, version, vendor
embedded in a DMscript. Redirect the result to a file, read it back and look for the products you want, create a MIF for it.
You could also use VB:
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!
" _
& strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery(_
"Select * from Win32_Product " & _
"Where IdentifyingNumber =" _
& " '{90280409-6000-11D3-8CFE-0050048383C9}'")
For Each objItem in colSoftware
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Version: " & objItem.Version
Next
But with VB you would have to write the MIF manually whereas DMScript will do it with a couple of function calls.
Steve McCormick, ITIL
CA Technologies
Principal Services Consultant
Stephen.McCormick@ca.com
<mailto:Stephen.McCormick@ca.com>