Can't change computername (but can change hostname)

My trusted client computers (all 10.6.8) have their computername (prefs->sharing) greyed out. However, the hostname (edit button) can be changed.


I can't find any managed preference for this in WGM. Can anyone tell me how I can change the computer name?


Thank you!

iMac, Mac OS X (10.6.8), i5 with Thunderbolt

Posted on Dec 8, 2011 7:03 PM

Reply
4 replies

Dec 11, 2011 7:28 PM in response to piperspace

Yes thank you for the lead, this works, but the correct command turns out to be:


>sudo scutil --set ComputerName thecomputername


(case matters in "ComputerName", and you need two dashes before "set".)


And in my case, I don't want the domain name in the "computername", as the DNS server takes care of appending (expand-hosts) the domain name when it's not there.


Thank you!!!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can't change computername (but can change hostname)

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