Not Updated Application Scan
Looking to create a Inventory collection that checks the version of an app to see if it is updated. Basically a "Not Updated" collection. My concern is that I have another application that has the same version as this program, so if I understand the logic correctly it may not have the correct info in the collection should only one app be updated.
<?xml version="1.0" encoding="utf-8"?>
<AdminArsenal.Export Code="PDQInventory" Name="PDQ Inventory" Version="18.2.12.0" MinimumVersion="4.0">
<Collection>
<ReportDefinition name="Definition">
<RootFilter name="Filter">
<Comparison>All</Comparison>
<Filters type="list">
<ValueFilter>
<Table>Application</Table>
<Column>Name</Column>
<Comparison>Equals</Comparison>
<Value>@(AppNamePolicyPak-AdminConsole)</Value>
</ValueFilter>
<ValueFilter>
<Table>Application</Table>
<Column>Version</Column>
<Comparison>VersionLowerThan</Comparison>
<Value>@(AppVerPolicyPak-AdminConsole)</Value>
</ValueFilter>
</Filters>
</RootFilter>
<ReportDefinitionTypeName>BasicReportDefinition</ReportDefinitionTypeName>
<Columns type="list">
<Column>
<Column>ComputerId</Column>
<Summary></Summary>
<Table>Computer</Table>
<Title></Title>
</Column>
</Columns>
</ReportDefinition>
<IsDrilldown value="false" />
<ImportedPath></ImportedPath>
<TypeName>DynamicCollection</TypeName>
<Created>2019-12-18T20:51:25.0000000-06:00</Created>
<Description></Description>
<Error></Error>
<Id value="2064" />
<IsEnabled value="true" />
<Modified>2019-12-18T20:51:25.0000000-06:00</Modified>
<Name>Not Updated</Name>
<ParentId value="2057" />
<Path>Application Installs\PolicyPak\PolicyPak Admin Console\Not Updated</Path>
<Type>DynamicCollection</Type>
<CustomVariables type="list">
<CustomVariable>
<Name>AppNamePolicyPak-AdminConsole</Name>
<Value>PolicyPak Admin Console</Value>
</CustomVariable>
<CustomVariable>
<Name>AppVerPolicyPak-AdminConsole</Name>
<Value>19.12.2275</Value>
</CustomVariable>
</CustomVariables>
<Children type="list" />
</Collection>
</AdminArsenal.Export>
-
Bryan,
Just to clarify, you have a dynamic collection that is checking to see if any machines have a version of "PolicyPak Admin Console" that is lower than 19.12.2275, but you are worried that another application may have the same version number, throwing off the results of your dynamic collection?
So long as you also have a correct value filter on the application name matching, that should not be an issue. With correct filters, both the application name filter and the application version filter must match, so another application using the same version number should not matter.
Try reworking your conditions like this:
-
Thanks Luke. Yes you are correct in your assumption. I am worried about the query finding PolicyPak Admin Console app installed then finding a different app having the same, but old version. In this particular case the PolicyPak Client Side Extention app version. Presently they both have the same version number.
Now to be totally honest, with this particular app both of them will update at the same time so I will deploy together. I am more concerned about some of my other app that are installed with very generic versions like 1.0.0.
Any particular reason you add in the second group filter compared to what I had?
-
Bryan,
My logic for the group filters might be unnecessary, but after years of using PDQ I have found it to work pretty well for me and helps me to keep it logically organized. Basically, the first "Any" group filter is saying look for "Any" application, and the second "All" group filter is saying look for "All" of these value filters on that one application.
Basically, the logic should say: return all computers where any one application meets all of these criteria
When organizing my filters like you did the original one in the past, I have run into issues where PDQ thought I wanted EVERY application to meet both of those criteria, so I organize my filters this way to be safe.
Please sign in to leave a comment.
Comments
3 comments