Here's a script that might help: #!/bin/bash
SerialNumber=$(system_profiler SPHardwareDataType | grep "Serial Number"
| awk -F':' '{print $2}' | sed -e 's/^[ ]//' -e 's/[ ]$//') Set the
computer name using the jamf binary /usr/local/bin/jamf setCompu...