Skip to content

How to: FIX: The Trust Relationship between this Workstation and the Primary Domain Failed – Windows 10

  • Jatin 

So, this happens often, usually laptops but sometimes desktop and even servers fall victim to this issue. There are apparently a number of reasons why this happens, but the main reason seems to be lost connection between the ‘client/server’ and the Domain controllers.

If the scheduled password change occurs while the server or client is unavailable or has been shut down, then the passwords stored in the server/client and the domain controllers for the computer account mismatch, and you will end up getting this error when trying to logon to the server.

It can also appear differently, like if all service accounts stop functioning with events logged as a result, or similar that happens when the server is still running, and you have been able to logon or simply never logged off.

We can fix this without removing/re-joining the PC to domain if:

Option 1: You have a local admin account on the machine that you know the password for, or

Option 2: You have logged in to the machine with a domain account with admin credentials in the past.

If Option 1, just log in with the local admin credentials and then proceed to the next part.

If Option 2, disconnect the network cord, disable wireless, etc, and then log in as your local admin domain account.

Open PowerShell and run the following commands:

$credential = Get-Credential (enter a domain admin account when prompted)
Reset-ComputerMachinePassword -Server DomainControllerName -Credential $credential

This command will reset the machine password with the domain controller and you should be able to resume normal domain network access now.

Well that was easy, and did not require you to leave and rejoin the domain. Enjoy! 🙂

Recommended Reading:

https://community.spiceworks.com/how_to/108912-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed

https://superuser.com/questions/947750/how-can-i-get-the-trust-relationship-to-the-domain-to-stop-failing

Related Posts:

Enable, Configure and Use Hyper-V on Windows 10:

Windows 10 Pro, Education and Enterpriseeditions come with a built-in hypervisor client Hyper-V allowing users…

Wi-Fi Connection Shows Limited or No Connectivity – Windows 8/8.1:

What happens when Windows 8 or 8.1 shows the following mysterious message whenever you try to connect to your wireless network?

Enable file downloads in Internet Explorer on Windows Servers:

If you have created a cloud server on Microsoft Windows but are having problems downloading files from your server, you might need to enable file downloads in Internet Explorer.

If this article helped you or if you have further suggestions, please feel free to comment below. 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.