Computer name resets after restart

Discussion in 'MacBook Pro' started by sethuv, Aug 4, 2012.

  1. sethuv macrumors newbie

    Joined:
    Aug 4, 2012
    #1
    I have bought a second hand mid 2010 unibody macbook pro. I have Mountain lion running on it. I try to change my computer name using System Preferences>Sharing. The computer name changes to the name i set. However when i restart the system, the computer name reverts back to the old name? Can you please help me resolve this?
    Thanks
    Sethu
     
  2. DJF3 macrumors newbie

    Joined:
    Jan 19, 2010
    #2
    <not an answer>

    I have the exact same thing. Sometimes (!) after a reboot my (retina) macbook's computername changes to the name I had configured when unpacking. Don't know why this happens. Maybe I'll open some log files to see if that gives me an idea on why this happens.

    DJ
     
  3. robvas macrumors 68020

    Joined:
    Mar 29, 2009
    Location:
    USA
    #3
    It's picking up a new hostname via DHCP

    Run this from a Terminal:

    Code:
    sudo scutil --set HostName whateverYouWantForYourComputerName
     
  4. DJF3 macrumors newbie

    Joined:
    Jan 19, 2010
    #4
    Fixed

    Guess what....

    Just found out that our IT department is running some scripts where, in certain situations, my computer is renamed to <userid>-mac

    THAT explains a lot. Nothing technical, just a script.
    Nevertheless thank you for the support.
     

Share This Page