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

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

  • “My trust relationship between my workstation and the primary domain failed.”
    • Let’s fix “The trust relationship between this workstation and the primary domain failed”.
      • The fix for the techies among us, including PowerShell.
      • The fix for the dummies among us, including screenshots.
      • Fix it locally on the device.
      • Fix it in Active Directory.

You will only see the error message “The trust relationship between this workstation and the primary domain failed”. In a work environment because the error message pops-up when the workstation and the Domain Controller is out of ‘sync’.

The reason this is happening is because there is a password mismatch between the Domain Controller and is workstation. Each computer in Active Directory stores the password. If there is for example a database restore, or a configuration is incorrect the password will be mismatched.


Let’s fix “The trust relationship between this workstation and the primary domain failed”.

The tutorial is separated in two tutorials.

  • The fix for the techies among us, including PowerShell.
  • The fix for the dummies among us, including screenshots.

The fix for the techies among us, including PowerShell.

We will use PowerShell as an easy fix. Make sure you’re a local administrator though.

  • Go to Start,
  • Search for PowerShell,
  • Open PowerShell as Administrator,
  • Copy and paste the following cmdlet in PowerShell.
    • Change the DOMAIN to your Domain.
    • Change Admin to an administrator in your DOMAIN.
Test-ComputerSecureChannel -Credential DOMAIN\admin -Repair

The Test-ComputerSecureChannel cmdlet verifies that the channel between the local computer and its domain is working correctly by checking the status of its trust relationships. If a connection fails, you can use the Repair parameter to try to restore it.

For more about Test-ComputerSecureChannel please go to this link: Test-ComputerSecureChannel.


The fix for the dummies among us, including screenshots.

Fix it locally on the device.

If you have local administrator rights on the workstation then you can also resolve it on the device itself. All you have to do is remove the workstation from the domain and add it again.

  • Go to File Explorer,
  • Right click on This PC,
  • Choose Properties,
  • Choose Change Settings,
  • Change again,
  • Change to the WORKGROUP.

Restart the device and then add the workstation to the domain again.

The trust relationship between this workstation and the primary domain failed Reddit
FIX: The trust relationship between this workstation and the primary domain failed.


Fix it in Active Directory.

If you have access to Active Directory you can also search for the computer in AD and delete the workstation here.

After the computer is restarted, a new trust relationship is established with Active Directory and you will see the device in AD again.

The trust relationship between this workstation and the primary domain failed Reddit
FIX: The trust relationship between this workstation and the primary domain failed.

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

Bas Wijdenes

My name is Bas Wijdenes and I work as a PowerShell DevOps Engineer. In my spare time I write about interesting stuff that I encounter during my work. View all posts by Bas Wijdenes

Post navigation

If you are trying to restore VMs (or physical machines) and it shows the trust relationship between this workstation and the primary domain failed, I won’t recommend using rejoin domain to solve issues, because it will happen unexpected issues after disjoin and rejoin domain.

Today, I am going to show you how to fix it without disjoin and rejoin domain.

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

1.Remove network connection (unplug ethernet cable).

2.Login with domain credentials or local administrator.

3.Re-Add network (Plug-in Ethernet cable).

4.Open PowerShell cmdlet Run as Administrator.

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

5.Click Yes at User Access Control page.

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

6.Run cmdlet as follow, and then enter domain admin user password, click OK.

Reset-ComputerMachinePassword -Server DomainController -Credential DomainAdmin.

e.g.

Reset-ComputerMachinePassword -Server CGY-DC01 -Credential gdmcgy\csun

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

7.Sign out and then try to sign in again.

Hope you enjoy this post.

Cary Sun

Twitter: @SifuSun

Web Site: carysun.com

Blog Site: checkyourlogs.net

Blog Site: gooddealmart.com

How do you fix the trust relationship between this workstation and primary domain failed?

Resolution. To resolve this issue, remove the computer from the domain, and then connect the computer to the domain. Use a local administrator account to log on to the computer.

How do you fix a broken trust relationship within a domain?

Here is the classical way to repair trust relationship between the computer and domain:.
Reset the computer account in AD;.
Move the computer from the domain to a workgroup under the local administrator;.
Reboot;.
Rejoin the computer to the domain;.
Restart the computer again..

What does the trust relationship between the primary domain and the trusted domain failed mean?

This error occurs because of a “password mismatch.” In Active Directory environments, each computer account also has an internal password – if the copy of the computer account password that is stored within the member server gets out of sync with the password copy that is stored on the domain controller then the trust ...

How do you break trust relationship between a computer and a domain?

Logon as Administrator to domain x. Start User Manager for Domains, and click Trust Relationships from the Policies menu. Select domain y from the Trusted Domains and click Remove and confirm.