Ive been browsing through different articles but havent quite found my answer. Im looking for a way to automatically name the device, our naming convention is serialnumber-username and the intial user that we create during setup is the username intended for the computername.
Can both of those values be pulled from the system and then I can just run a script using scutil to change hostname and computername?