Is there a way to enable "show battery percentage" for MacBooks using a policy and/or a script?
I googled and found ways to display the battery percentage actually within Terminal, but I couldn't see a way to enable it to always be displayed on the menu bar?
The Energy Saver profile settings don't contain a setting for this.
Dan Jackson (Lead ITServices Technician).
This no longer appears to be working I am trying to incorporate VPN Icon in here as well but my syntax must be be wrong somewhere.
#!/bin/sh user=$(stat -f %Su /dev/console); sudo -u $user open "/System/Library/CoreServices/Menu Extras/vpn.menu" sudo -u $user defaults write com.apple.menuextra.battery -ShowPercent YES sudo -u $user killall SystemUIServer
Some assistance would be most appreciated, as I am learning here.