Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Set mac serial number as variable in terminal

I need to create a shell script that will change the mac's computer name to its serial number.


ioreg -l | grep IOPlatformSerialNumber <----will give me the serial


scutil --set ComputerName Serial_Num<----will change the computer name


so is there a way to set the serial number as a variable?

Mac OS X (10.6.7)

Posted on Dec 1, 2011 1:14 PM

Reply
2 replies

Set mac serial number as variable in terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.