We have frequently been running in to this error on Windows 7: “The trust relationship between this workstation and the primary domain failed.” The error appears during login after you type in your username and password and hit enter.
Our solution in the past was to reload the machine from our standard image for a few reasons:
This problem has happened frequently enough to where I decided to revisit Google to see if anyone else has found a way around this. The result that I found was laughably easy. Here it is:
Boot with a Windows 7 Install or Repair Disc
If using an Install Disc, click Repair Computer in the bottom left-hand corner.
Select your OS from the list after it populates.
Select Command Prompt.
Type the following commands, hitting enter after each:
cd /d C:\Windows\System32
move sethc.exe \
copy cmd.exe sethc.exe
Restart the computer normally.
When the Login screen appears, hit the Shift key 5 times.
At the Command Prompt, type the following commands:
net user Administrator *(then set a password)
net user Administrator /active:yes
Close the Command Prompt and login as Administrator.
Detach the domputer from the domain and restart.
Login as Administrator again and re-attach the computer to the domain.
Restart and you’re done!
Stupid easy right?
What this is doing is taking advantage of the Ease of Access feature during login. We’re replacing the Ease of Access program (
sethc.exe) with a copy of the Command Prompt (
cmd.exe). In this way, when we hit the Shift key 5 times, we get the command prompt.