Battery System Prefs Locked?

llitz123
Contributor III

I can't find an easy way to unlock the Battery system pref for clients.  I want non-admins to setup their own preferences in Battery.

Screen Shot 2022-03-18 at 3.22.47 PM.jpg

Am I missing something?

2 REPLIES 2

KyleEricson
Valued Contributor II

@llitz123  Try this out, note I have seen these settings reset themselves so might want to run once a week or at login via Outset. 

https://github.com/kylejericson/JAMF/blob/master/Scripts/Allow%20standard%20users%20rights%20to%20sy...

 

Read My Blog: https://www.ericsontech.com

Nick1403
New Contributor III

Hi @KyleEricson,
I modified and tested your script. The following script works:

#!/bin/sh

# unlock the sysprefs before unlocking specific panes: 
security authorizationdb write system.preferences allow 

# unlock battery: 
security authorizationdb write system.preferences.battery allow


exit 0

thank you for sharing! :)