Skip to main content
Solved

Application Usage Smart Group


Forum|alt.badge.img+3

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!

Best answer by sdagley

@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>"

 

 

View original

Forum|alt.badge.img+3
  • New Contributor
  • January 30, 2023

Hey!

That's not really what I meant. 
I searched for JAMF PRO SMART GROUPS criteria for collecting Computers Application Usage.


jamf-42
Forum|alt.badge.img+17
  • Esteemed Contributor
  • January 30, 2023

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... 

 


sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • January 30, 2023

@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>"

 

 


Forum|alt.badge.img+3
  • New Contributor
  • January 31, 2023
sdagley wrote:

@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>"

 

 


Amazing!

Very Helpful, thanks!

Have a great Day!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings