How can I find a mac's Active Directory name from the terminal? I've got a bunch of macs with correct AD names and incorrect local names. I want to have the correct names in Casper Inventory. I know how to change the name of the computer, but I would like to automate the process. Can anyone tell me how to get the AD name?
Thanks!
Mark
