Skip to main content
Question

Battery System Prefs Locked?

  • March 18, 2022
  • 2 replies
  • 9 views

Forum|alt.badge.img+12

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.

Am I missing something?

2 replies

KyleEricson
Forum|alt.badge.img+17
  • Valued Contributor
  • March 20, 2022

@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%20system%20prefs.sh

 


Forum|alt.badge.img+7
  • Contributor
  • March 21, 2022

@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%20system%20prefs.sh

 


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! :)