Our PC users enjoy wsname as a way to automatically name their systems. We've developed a similar script for you to use to automatically name your Macintosh computers. There are 2 files included with this download:
You do not need to modify mac_rename.sh unless you change the name of the text file or would like to add to the hostname.
The HostName can be modified to append your domain structure i.e. Macbook.kace.com or can be left as hostname i.e. MacBook.
Open mac_names.txt with a text editor. Add the serial number of a computer, a space, an equal sign, a space and then the name to give the computer. No spaces allowed in the computername.
serialnumber = computername
The document must be in this format for the process to work correctly.
Zip the 2 files together and upload the .zip file you created to the K2000 as a post install Macintosh application task. In the command line field type the following:
Save the task and add it as a post install task to your Macintosh image.
*Note: you must be a member of the K2000 ITNinja Community to download this file.