Setting Computer Name based on Inventory Preload/Asset Tag Field

nguyend
New Contributor

Hi, 

I am trying to create a naming script for computers in my organization based on the inventory preload /Asset Tag field. The goal is to have the computer name be set based on the serial number.

i.e.. If serial is 12345 then name be set to COMP-ID-01

Thanks, 

 

2 REPLIES 2

mickgrant
Contributor III

Try using the Jamf setComputerName command. 

While it doesn't explicitly give you the ability to pull from the asset tag field, it does let you Pull the data from a CSV file.