Not sure that there is a mass action option for this (yet), but there is
a new API endpoint that may work depending on your setup:
https://learn.jamf.com/bundle/technical-articles/page/Return_to_Service.htmlhttps://developer.jamf.com/jamf-pro/referen...
There's probably a way to consolidate the two cut commands at the end of
this, but it has worked for me:/usr/sbin/ioreg -i -w 0 -f -r -c
AppleSmartBattery | /usr/bin/grep "BatteryData" | /usr/bin/grep -o
'DesignCapacity.*' | /usr/bin/cut -f2- -d"=" |...
Here's a couple alternatives to the ioreg command to get the serial
number if you wanted to try them in its place:system_profiler
SPHardwareDataType | grep "Serial Number (system)" | awk '{ print $4
}'orsystem_profiler SPHardwareDataType | awk '/Seri...