For whatever reason, the ComputerName on all of our macbook airs on campus have been changed to "Macbook Air". Obviously, this has been irritating to the end users and even more irritating to IT.
I'm thinking there may be a way to use dscl to read the name of the computer from AD and then pipe that to a scutil --set ComputerName command.
Does anyone have a good way to do this?