/build/static/layout/Breadcrumb_cap_w.png

Version Checker

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 & _
"\root\cimv2")

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

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

End If




0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
("SELECT * FROM Win32_Product WHERE Name LIKE 'Adobe Read%'")
Posted by: anonymous_9363 12 years ago
Red Belt
1
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%'")
Posted by: InterneToughGuy 12 years ago
Senior Purple Belt
0
wow, thanks!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ