The trust relationship between this workstation and the primary domain failed in Windows









Windows error "The trust relationship between this workstation and the primary domain failed" happens when the session login is attempted through Remote Desktop Protocol, ICA, or directly at the console.


Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to fix Windows related errors.

In this context, we shall look into the main causes of this error and how to tackle this Windows error.


What triggers Windows error "The trust relationship between this workstation and the primary domain failed" ?

Generally, this error message occurs when the session login is attempted through Remote Desktop Protocol, ICA, or directly at the console. It means that the machine we are trying to access can no longer communicate securely with the Active Directory domain to which it is joined.


Here are the different causes of this error to occur.

i. Having a problem with a user account, that is, invalid domain user credentials.

ii. The relationship between client and domain server has some problem.

iii. Multiple computers exist with the same name inside a domain.


Methods to fix Windows error "The trust relationship between this workstation and the primary domain failed" ?

Now let us see how to fix this error message.


Method 1: Rejoin a Computer from a Domain

In this method, we rejoin the client machine from a domain. Here we make use of the Domain Administrator account which has permission to do changes like join or rejoin the machine from the domain.


Now we are taking an example of how to rejoin Windows 10 Pro from Windows Server 2016 Standard.

1. First, we log on to Windows 10 using a local Administrator account.

2. Next, we hold the Windows logo and press E to open File Explorer.

3. On the right side of the File Explorer, we right-click on This PC and choose Properties.

4. After that, we click Advanced System Settings and Choose the Computer Name tab.

5. Then we click Change to add machine to Workgroup.

6. We choose Workgroup and type Workgroup. In our example, the Workgroup name is WORKGROUP.

7. After that, we click OK.

8. Now we type domain Administrator account and password and then click OK.

9. We click OK and then OK.

10. Then we close System Properties and restart the Windows machine.

11. Now, we log on to Windows 10 using a local Administrator account.

12. Next, we hold the Windows logo and press E to open File Explorer.

13. On the right side of the File Explorer, we right-click on This PC and choose Properties.

14. After that, we click Advanced System Settings and choose the Computer Name tab.

15. Then we click Change to add machine to domain.

16. We choose a domain and type the domain and click OK.

17. We type domain Administrator account and password and then click OK.

18. Then we click OK and then OK.

19. After that, we close System Properties and restart the Windows machine.

20. Finally, we log on to Windows 10 using a domain user account.

 

Method 2: Re-establish trust through PowerShell

In this method, we will re-establish trust between the domain controller and the client using PowerShell. We will need to log on using a local Administrator account.

1. First, we log on to Windows 10 using the local Administrator account

2. Next, we click on the Start menu and type PowerShell.

3. After that, we right-click on PowerShell and choose Run as Administrator.

4. Then we press Yes to confirm running as Administrator.

5. We type $credential = Get-Credential and press Enter.

6. Next, we enter the domain admin account and password and then click OK.

7. We type Reset-ComputerMachinePassword -Credential $credential and press Enter.

8. After that, we close PowerShell and restart the Windows machine.

9. Finally, we log on to Windows 10 using a domain user account.

 

Method 3: Add a domain controller to Credential Manager

In this method, we will use the Credential Manager. Here we will add domain controllers account in Windows Credential. We will show how to do it on Windows 10.

1. First, we log on to Windows 10 using a local Administrator account.

2. Next, we type control.exe /name Microsoft.CredentialManager in Run prompt and press Enter to open Credential Manager.

3. After that, we choose Windows Credential and type the address of the website or network location and credentials.

4. Then we click OK.

5. We close the Credential Manager and restart the Windows machine.

6. Finally, we log on to Windows 10 using a domain user account.

 

[Need urgent assistance in fixing Windows errors? – We are here to help you.]

Conclusion

This article will guide you on the methods to fix #Windows error "The trust relationship between this #workstation and the primary #domain failed" message which occurs when the session login is attempted through #RDP Remote Desktop Protocol, #ICA, or directly at the console.