- login with local administrator account then right click on "my computer" and select properties then select the "computer name" tab
- hit the change button , select the WORKGROUP radio and type a name
- confirm OK's all along but no restart required just now
- repeat the above steps but this time join the computer to desired domain (select Domain radio button instead)
- OK and restart
it solved my problem hope it works for you