How to Fix Trust Relationship between this Workstation and the Primary Domain failed (2024)

A pretty common problem that most system administrators have seen once is the error “the trust relationship between this workstation and the primary domain failed”. This error occurs after you have logged in on a domain computer.

When this error occurs you won’t be able to login with any domain account on the computer. Only a local account will work. The problem is that the trusted relationship with the domain controller has failed.

In this article

In this article, we will look at how to quickly fix the error on a single computer and look at other options as well.

Trust Relationship has Failed Error

Before we take a look at how to fix the trust relationship between this workstation and the primary domain failed error, let’s take a quick look at what causes the error. Understanding the cause can help you prevent the error in the feature.

How to Fix Trust Relationship between this Workstation and the Primary Domain failed (1)

When a computer is joined to a domain, a password for the computer object is synced between the Active Directory and the computer. This password is renewed every 30 days automatically by default. If the passwords don’t match, then you will get the error message and won’t be able to log in.

The most common reasons that cause this error are:

  • Computer hasn’t been connected to the domain for more than 30 days
  • New computer with the same name added to the domain
  • Computer object is removed from the Active Directory
  • Cloned computer without using Sysprep
  • Restored an old backup of the computer
  • Replication issues between your domain controllers

How to Fix Trust Relationship between this Workstation and the Primary Domain failed

The easiest option to restore the Trust Relationship is to unjoin the computer from the domain and rejoin it again. This step requires a reboot but is easy to do and only takes 5 min in total. You will need to log in with the local admin account the perform the steps below:

Time needed:5 minutes

  1. Login as local Administrator

    Make sure that you are logged in as local administrator on the computer

  2. Open the Computer Properties

    Open Start and type System. Select System from the suggested list. (Sometimes it’s listed a bit lower under Settings)
    Another option is to open the Explorer > Right-Click on This PC and choose Properties

    How to Fix Trust Relationship between this Workstation and the Primary Domain failed (2)
  3. Open Domain or workgroup
  4. Change the Computer domain or workgroup

    In the Computer Name tab, click on Change… to change the computers domain or workgroup

    How to Fix Trust Relationship between this Workstation and the Primary Domain failed (4)
  5. Make it part of the Workgroup TEMP

    Under Member of, select Workgroup and enter the name Temp. Click on ok and enter the domain admin credentials.

  6. Restart the computer

    Click on Ok again, and Restart the computer.

  7. Re-join the Domain

    We can now rejoin the computer to the domain.

    Repeat the steps above, but make it member of the domain in Step 5. You will need to reboot the computer one more time to complete the process.

We can also unjoin and rejoin the domain with PowerShell. The advantage of this method is that you don’t need to reboot between the two steps:

# Src : https://community.spiceworks.com/topic/2321591-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed#entry-9199478$computer = Get-WmiObject Win32_ComputerSystem$computer.UnjoinDomainOrWorkGroup("AdminPW", "AdminAccount", 0)$computer.JoinDomainOrWorkGroup("Domain", "AdminPW", "AdminAccount", $null, 3)Restart-Computer -Force

Repair Trust Relationship without Reboot

It’s also possible to repair the trust relationship without the need to unjoin and rejoin the domain. This method is particularly handy when you need to solve the problem on multiple computers. For the step below to work, the computer object needs to exist in the Active Directory.

  1. Open the Active Directory Users and Computers
  2. Right-click on your Domain and choose Find…
  3. Change Find to Computers
  4. Search on the computer name
How to Fix Trust Relationship between this Workstation and the Primary Domain failed (5)

If the computer object exists in the AD, then we can log in on the computer with a local admin account and run the PowerShell command below. You will be prompted to enter the domain admin password:

Reset-ComputerMachinePassword -Server DomainServer -Credential DomainName\Administrator

This will reset the computer password and sync it with the Active Directory server. Next, we will need to test if the Trust Relationship is restored, to do this we can use the Test-ComputerSecureChannel cmdlet.

Test-ComputerSecureChannel

If the cmdlet returns False, then we can repair it using the following command. Again you will be prompted to enter the domain administrator password

Test-ComputerSecureChannel -Repair -Credential DomainName\Administrator

After running the command you should be able to login again with a domain account. There is no need to reboot the computer with these steps.

Wrapping Up

The methods described above are the easiest and most convenient ways to solve the error “the trust relationship between this workstation and the primary domain failed”. After you have fixed the issue, make sure that you look into the cause of the problem, to prevent it from happening again.

I hope you found this article helpful, if you have any questions, just drop a comment below.

How to Fix Trust Relationship between this Workstation and the Primary Domain failed (2024)
Top Articles
Barclays Equity Release Comparison - 5.74% Rates Calculator
Top 10 Best Blue Zones Breakfast Ideas
Ups Dropoff Location Near Me
Regal Amc Near Me
The 10 Best Restaurants In Freiburg Germany
Apex Rank Leaderboard
Rondale Moore Or Gabe Davis
Nc Maxpreps
Umn Pay Calendar
Pike County Buy Sale And Trade
Find The Eagle Hunter High To The East
World Cup Soccer Wiki
New Mexico Craigslist Cars And Trucks - By Owner
Mission Impossible 7 Showtimes Near Regal Bridgeport Village
1Win - инновационное онлайн-казино и букмекерская контора
Johnston v. State, 2023 MT 20
California Department of Public Health
Define Percosivism
Pekin Soccer Tournament
Grayling Purnell Net Worth
Ibukunore
Craigslist West Valley
Wausau Marketplace
20 Different Cat Sounds and What They Mean
Why Does Lawrence Jones Have Ptsd
Hdmovie 2
Music Go Round Music Store
Hobby Stores Near Me Now
Unionjobsclearinghouse
Thick Ebony Trans
Sec Baseball Tournament Score
Stihl Dealer Albuquerque
Hesburgh Library Catalog
Meta Carevr
Copper Pint Chaska
Garden Grove Classlink
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
Downloahub
United E Gift Card
Prévisions météo Paris à 15 jours - 1er site météo pour l'île-de-France
Jambus - Definition, Beispiele, Merkmale, Wirkung
Flixtor Nu Not Working
4083519708
R&J Travel And Tours Calendar
Puffco Peak 3 Red Flashes
Toth Boer Goats
Check From Po Box 1111 Charlotte Nc 28201
Www.craigslist.com Waco
Grand Valley State University Library Hours
From Grindr to Scruff: The best dating apps for gay, bi, and queer men in 2024
Menu Forest Lake – The Grillium Restaurant
Edt National Board
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6382

Rating: 4.4 / 5 (45 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.