I have a script below that gets me the version info on all the programs installed on my pc. Does anyone know of a way I can modify this so it can only get me Adobe reader and winzip? Your help would be greatly appreciated.

strComputer = "."

Set objWMIService = GetObject("winmgmts:" & _
"{impersonationLevel=impersonate}!\\" & _
strComputer & _

Set colSoftware = objWMIService.ExecQuery _
("SELECT * FROM Win32_Product")

If colSoftware.Count > 0 Then
For Each objSoftware in colSoftware
Wscript.Echo objSoftware.Caption & vbtab & _
WScript.Echo "Software not installed"

End If

Answer Summary:
("SELECT * FROM Win32_Product WHERE Name LIKE 'Adobe Read%'")
0 Comments   [ + ] Show Comments


Please log in to comment

Community Chosen Answer

Off the top of my head (you can check the syntax and column names on MSDN/TechNet), try:("SELECT * FROM Win32_Product WHERE Name LIKE 'Adobe Read%'")
Answered 03/08/2012 by: VBScab
Red Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


wow, thanks!
Answered 03/08/2012 by: InterneToughGuy
Senior Purple Belt

Please log in to comment
Answer this question or Comment on this question for clarity