How to find hostname in mac3/8/2024 ![]() Before using this script, replace "XX" in line 12 with the client company's initialsĬurrentUser=`/bin/ls -l /dev/console | /usr/bin/awk '') #Rename the Mac using the first and last initial of the user's name. There were only a few so it wasn't a bit deal. There were some users with the same initials, so we dealt with those manually. This script was useful when I needed to mass rename a lot of Macs. It appears to run at some point either before or after DEPNotify is finished. I have this script run as the first policy that runs at check-in after the user account is setup and the desktop appears. We would just go into the policy containing the script and set the company initials in the field provided. When ever I get around to it, I will make a version of the script that will allow us to define a variable for the first part of the script for the company so we don't have to manually modify this script every time it's added to a Jamf Pro server. I did not want to have to manually rename Macs every time one is enrolled, so I wrote this script with some help from other Jamf Nation members. For my clients I use a naming scheme that uses the company's initials, "M" for Mac, and then the user's first and last initials.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |