The trust relationship between this workstation and the primary domain failed KB2771040

The trust relationship between this workstation and the primary domain failed KB2771040.

Step 1

If you know the local admin password – great! just click Switch User and log in as .\administrator and your password “.\” replaces the computer name in case you dont know it.

If you do not know local admin password but previously logged in with your domain credentials, you are still good. Unplug the network cable, disable wireless, then reboot the system (not necessary). After reboot log in with you domain credentials and you should be able to get back in.

Step 2

Open PowerShell as administrator. Run this command sequence:
$credential = Get-Credential – (enter domain admin account when prompted)


Another option:

Reset-ComputerMachinePassword -Server ClosestDomainControllerNameHere

If not help – then use KB2771040:

  1. Use a local administrator account to log on to the computer.
  2. Select Start, press and hold (or right-click) Computer > Properties.
  3. Select Change settings next to the computer name.
  4. On the Computer Name tab, select Change.
  5. Under the Member of heading, select Workgroup, type a workgroup name, and then select OK.
  6. When you are prompted to restart the computer, select OK.
  7. On the Computer Name tab, select Change again.
  8. Under the Member of heading, select Domain, and then type the domain name.
  9. Select OK, and then type the credentials of the user who has permissions in the domain.
  10. When you are prompted to restart the computer, select OK.
  11. Restart the computer.
You might also like

Leave a Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More