Browse
Jamf Nation Community
Products
Community & Events
Groups
Tech Thoughts
Jamf Nation Rewards
Help
Sign In
04-16-2024
tosanmac-jaja
New Contributor
Joined:
September 2022
User Statistics
1
Posts
0
Solutions
0
Kudos given
0
Kudos received
View all badges
Jamf Nation Community
About tosanmac-jaja
User Activity
Posts
Replies
No posts to display.
Re: Script to name computers to SerialNumber
12-06-2022
# Set basic variablesosversion=$(sw_vers -productVersion)serial=$(ioreg -rd1 -c IOPlatformExpertDevice | awk -F'"' '/IOPlatformSerialNumber/{print $4}')#Setup Computer namebase=SYS-serial="$(ioreg -l | grep IOPlatformSerialNumber | sed -e 's/.*\"\(.*...