We all know the day comes where the customer/boss asks, “I need to see if this application is showing installed in the Add/Remove Programs”.
Then you review DCM (Desired Configuration Management) and you ponder and ponder and ponder on how to make this work. Well, below is a way to accomplish this task while verifying two items at the same time. The first item is the name of the product and second item is the version of the product.
Here’s what I did:
First run from a CMD prompt, “wmic path win32_product get name” and export this to a text file to refer back to while your building the DCM CI (Configuration Item).
Next Create a DCM CI and in the Setting tab, Click New, Click WQL Query.
Use the outline below to fill in the blanks to review Adobe Reader 9.1. To modify this, you will need to look at the txt file you ran in the beginning for the WMI Product Name. Match that Product Name where you see “Adobe Reader 9.1”. For the version, it’s best to go to Add/Remove Programs and click on the product, then click on “Click here for support information”.
Display Name: Adobe Reader 9.1
WQL query Where Clause: Name=’Adobe Reader 9.1′
Data type: String
Details: Create a WQL Query
Name: WQLQuery_Adobe Reader 9.1 Version
Report a non-compliance event when this instance count fails: Checked
Instance count operator: Greater Than