I'm working on a script that would be used while a device is in the Netboot state. The script will remove the device from the JSS and Active Directory then format the HD.
The part i'm hoping someone can assist with is how to get the Computer Name based on the UUID. I'm getting the UUID with the following script.
uuid=$(/usr/sbin/ioreg -rd1 -c IOPlatformExpertDevice | /usr/bin/grep -i "UUID" | /usr/bin/cut -c27-62)
I'm hoping this is possible so i can avoid having to prompt the tech for the device name.
