Posted on 01-30-2023 12:06 AM
Hey Guys,
is there a way to build a smart group for "not used" Apps in the last (maybe) 10 days?
We want to shorten our Browser List and remove Firefox, but first to all Devices that don't use Firefox.
I checked the box for "Collect Application Usage" and we see the Usage Information in the Computer Objects. I just need a way to collect all information into one Group to scope the removal script.
Thanks for some Advice!
Solved! Go to Solution.
01-30-2023 07:31 AM - edited 01-30-2023 07:32 AM
@MathiasO The Application Usage data isn't available as a Smart Group criteria. You could create an EA for each of the apps you're interested to see when it was last launched, and use that as the criteria for a Smart Group to target your removal script policy. Here's an example EA that returns the last time VMware Fusion was launched (make sure to set the EA data type as Date):
#!/bin/sh
AppToCheck="/Applications/VMware Fusion.app"
Result="2000-01-01 00:00:01"
if [ -d "${AppToCheck}" ]; then
Result=$(mdls -name kMDItemLastUsedDate "${AppToCheck}" | cut -f 3,4 -d \ )
fi
echo "<result>$Result</result>"
Posted on 01-30-2023 04:42 AM
Hey!
That's not really what I meant.
I searched for JAMF PRO SMART GROUPS criteria for collecting Computers Application Usage.
01-30-2023 04:46 AM - edited 01-30-2023 04:51 AM
you can't, there isn't an option. All you can do is search here:
this provides some very basic output that cannot be exported.. and you can't even save the search...
01-30-2023 07:31 AM - edited 01-30-2023 07:32 AM
@MathiasO The Application Usage data isn't available as a Smart Group criteria. You could create an EA for each of the apps you're interested to see when it was last launched, and use that as the criteria for a Smart Group to target your removal script policy. Here's an example EA that returns the last time VMware Fusion was launched (make sure to set the EA data type as Date):
#!/bin/sh
AppToCheck="/Applications/VMware Fusion.app"
Result="2000-01-01 00:00:01"
if [ -d "${AppToCheck}" ]; then
Result=$(mdls -name kMDItemLastUsedDate "${AppToCheck}" | cut -f 3,4 -d \ )
fi
echo "<result>$Result</result>"
Posted on 01-31-2023 05:36 AM
Amazing!
Very Helpful, thanks!
Have a great Day!