I'm wondering if there's the ability to apply a Mac's previous name as it is in Jamf, at the time it is reenrolled or as a post-re-enrollment process after it has been wiped and reloaded with a fresh OS. Right now there is the ability to create a policy to run with the “Enrollment Complete” trigger and possess a Maintenance payload with the “Reset Computer Names” checked.
Unfortunately though when enrollment completes, before the aforementioned policy has a chance to run, an inventory update is run (a built-in part of the enrollment process) which of course causes the Mac’s existing name in Jamf to be changed and overwritten to the default “iMac” name it automatically gets when installing an OS.
By the time the above "Reset Computer Name" policy runs, the Mac’s name in Jamf has already been set to the generic “iMac” due to the forced inventory update at the time of enrollment.
We currently name our Macs based on location (building and room number) along with the asset tag number, and having to do that manually for existing Macs just seems like the dark ages.
This is probably a pipe dream, but what would be nice would be to have the ability re-enroll existing Macs, without an inventory update being immediately ran. Perhaps a special PreStage Enrollment setting that applies to Macs with existing Jamf entries, allowing their previous name in Jamf to be reapplied, and then running any inventory update after that. Of course for new Macs or Macs that have not yet been enrolled in Jamf, that setting would be completely inert, as there would be no existing Jamf entry for it to query and apply.