Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a work computer (Windows 7) set up with local login (not domain login). Later I needed to login to the domain.

So I made changes to join the domain by right-clicking on My computer and generating a network Id and entering the domain name there. I was successfully able to join the domain.

Now I cannot log back into the local login. I get the message saying "the trust relationship between this workstation and the primary domain failed".

How do I fix this?

Thank you.

share|improve this question
What do you mean by "generating a network Id"? – Massimo Dec 16 '11 at 0:10

I saw this a couple times recently - my solution, which hasn't failed yet, was to unplug the network cable and log on to the machine as an admin and then plug the network back in once I got to the desktop. Hooray for cached credentials. At that point I believe I went through the motions of rejoining the domain which found the computer's domain account and asked if I wanted to use it, which I accepted.

It was a Windows 7 client on a SBS 2003 domain, I had previously logged in as an admin to setup some software.

share|improve this answer
Thanks for the suggestion to disconnect from the network and use cached credentials-- that worked for me. Unfortunately in my case the domain controller seemed to believe I was a totally different computer and made me rename the computer when re-joining the domain, but that wasn't a huge issue. – davidcl Nov 6 '13 at 20:24

The failed trust relationship might be due to the fact that the machine's account has been disabled or removed from the domain it has once joined. If you need to perform a logon with a local account, just use the MACHINENAME\username syntax when specifying the username.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.