

So you can guess this computer’s battery life is at least 1/3 less than it was when it was brand new. Take the current maximum output rating (4950) divided by the original design output rating (7150) and you get. Well, you may wonder “How much shorter is the battery life?” This is where the battery capacity stat provided by Jamf comes in. This would tell us that the battery is not lasting as long as it did when it was new, since the current maximum capacity is a lower number. As an example, let’s say a battery was originally designed with an output rating of 7150mAh (meaning a brand new battery would have a rating similar to this), but the computer is reporting back that its current maximum output rating is only 4950mAh. The Battery Capacity statistic is given as a percentage, and is calculated by dividing the current maximum capacity of the battery by the design capacity of the battery. It’s possible you may not even need to go the extra mile with what I’m about to show you with attributes remember that Jamf reports a laptop’s Battery Capacity in Inventory > Hardware. With that, let’s look at some reporting features we can utilize in Jamf to target users with failing batteries. You’ll also likely get a bunch of calls from your users to your boss (or even higher ups) telling them how good of a job you’re doing, which is always helpful. This can be a great way to build a relationship with your user base, which of course is important in being a good admin.

Most people will respond with “Wow, how did you know that?” which is a good segue into telling them about Jamf and all of the plates you spin behind the scenes. Trust me, if you want to be a good admin and have a user base that really adores you, giving a courtesy call to say “Hey, according to my reports, your battery life doesn’t look like it’s in great shape and I just wanted to check in with you on it” will go a long way.
#Jamf pro extension attributes code
Site code licensed MIT.When it comes to identifying issues in your client computers before they start, monitoring battery health is probably one of the most important things you can target.

Stopping an AutoPkg Recipe if VirusTotal Detects Malware Search

#Jamf pro extension attributes how to
How to Parse JSON on the macOS Command Line Without External Tools Using JavaScript for Automation Afterward: → Hopefully this helps you store and run JavaScript for Automationĭiscuss this post on GitHub Discussions ➫. Your computer's inventory record during the next device inventory. This will output ARM64E, for example, which will show up on Shebang, like this: #!/usr/bin/osascript -l JavaScript function run ( ) You can run JXA directly by including the JavaScript language flag in a script's Work, and the #scripting channel on the MacAdmins Slack team isįull of folks discussing new and old discoveries. Armin Briegel shared a great roundup of recent JXA There must be something in the air that put the topic of JXA on the minds of Quick follow-up to my earlier guide on using JavaScript for Automation. Using JXA in Jamf Pro Scripts and Extension Attributes - MacBlog ⌘ MacBlog Posts About RSS feed Contact Using JXA in Jamf Pro Scripts and Extension Attributes
