When we try to log into our Windows computer in a domain environment and get the message Trust relationship between the workstation and the primary domain fails it’s too annoying. So let’s see how we can fix it in a few minutes.
This error is generated due to a “password mismatch”. In “Active Directory” environments, each computer has an internal password; If we copy this password from the account of the computer that stores the server, it does not synchronize with the domain controller and the error appears.
Solution to approve the relationship error between the workstation and the primary domain
Therefore, the first thing we need to do is apply a series of solutions which we will comment on a bit below. It is not necessary to apply them in order.
We will see each of these points in more detail below and so we can resolve the unfortunate error in the trust relationship between the workstation and the main domain.
Connect the computer to the domain
The solution that the guys at Microsoft recommend is to simply reconnect the computer that failed to connect. For this, we will see what to do as follows:
In order to solve the problem of trust relationship between this workstation and the main domain, we will have to restore trust between the domain and the client.
We press Windows key + X or right click on the “Start” menu and we will have to start “PowerShell” as administrator. A command console opens where we will have to copy and paste the following command: $ Credential = Get-Credential then we press “Enter”.
Now we will need to enter the domain administrator username and password in the login pop-up window and click “OK”.
Then we will have to copy and paste the command that we will leave a little lower in the PowerShell window and press “Enter”: Reset-ComputerMachinePassword -Credential $ identification
When the command is finished, we can quit PowerShell and we will need to restart the computer.
Add the domain controller to the credential manager
In this case, it suffices to add the domain controller to Credential Manager. For this we will have to follow the steps that we will leave you a little below.
Reset computer account
In this method, we will test by resetting the account of the computer on which we received the error message.
Share this with your friends!