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

CTX227147

{{tooltipText}}

Article | Configuration 3rd party / compatibility | {{likeCount}} found this helpful | Created: {{articleFormattedCreatedDate}} | Modified: {{articleFormattedModifiedDate}}

Symptoms or Error

Users cannot log on to a system using Active Directory credentials and the following error message appears:
"The trust relationship between this workstation and the primary domain failed.”

 

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

 This issue is seen when the session logon is attempted through Remote Desktop Protocol, ICA, or directly at the console. Only logons using local accounts are successful. The underlying problem when this error is seen is that the machine you are trying to access can no longer communicate securely with the Active Directory domain to which it is joined.


Solution

 

First, determine which component is having the issue. Then use the repair method that works best for your environment.

  Provisioning Services Server, XenDesktop or XenApp Delivery Controller or XD/XA VDA:

Option 1) Reset the Computer Account Password in AD Users and Computers

 

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

Option 2: Reset via PowerShell

Option 3: Change the domain value in the System properties of the machine from the FQDN to the NETBIOS name (or vice-versa).(NOTE: Not applicable to delivery controller as per https://support.citrix.com/article/CTX215880 )

i) Login as a local administrator.
ii) Open the Windows System properties
iii) Change: “domain.net” to just “domain”

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


 

Option 4) CMD line using NETDOM tool:

1. Logon to the machine with a local administrator account.

2. Obtain the tool netdom.exe from Windows Server 2008 or Windows Server 2008 R2 CD to enable the Active Directory Domain Services role.

3. Note: For Windows Vista and Windows 7, utilize the Remote Server Administration Tools (RSAT) to enable the Active Directory Domain Services role.

4. Run netdom.exe to change the password.

5. Open command prompt with administrator rights.

6. Execute the command: netdom.exe resetpwd /s:<server> /ud:<user> /pd:*

7. Restart the machine
  
Provisioning Services Target Device

Make sure that you have configured the PVS environment properly.
Reference the following article: https://support.citrix.com/article/CTX132289

Once that is confirmed. Shut the target device down and reset the machine account password for the affected target device in the PVS console.

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


Problem Cause

This can happen for a number of reasons. This article address the situations where the machine account password needs to be reset. These are the non-destructive methods for fixing the most common causes for the trust relationship issue.

  For example:

  • Machine was disjoined and rejoined to the domain in PVS/MCS environment which discard all changes on reboot.
  • Machine was restored to a system restore point or to a snapshot that is old enough to have a different machine account password than the one currently in use by AD.
  • More than one machine on a network with the same hostname.
  • AD Machine account object corruption.
  • AD policy that would disable a computer after x number of days of not authenticating.
  • Computer object in AD is deleted. 


Additional Resources


Disclaimer

Citrix is not responsible for and does not endorse or accept any responsibility for the contents or your use of these third party Web sites. Citrix is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement by Citrix of the linked Web site. It is your responsibility to take precautions to ensure that whatever Web site you use is free of viruses or other harmful items.

How do you fix a trust relationship between workstation and domain?

Fixing Trust Relationship by Domain Rejoin.
Reset local Admin password on the computer;.
Unjoin your computer from Domain to Workgroup (use the System Properties dialog box — sysdm.cpl);.
Reboot;.
Reset Computer account in the domain using the ADUC console;.
Rejoin computer to the domain;.
Reboot again..

What causes the trust relationship between this workstation and the primary domain failed?

“The trust relationship between this workstation and the primary domain failed” Error Message. When an AD domain no longer trusts a computer, chances are it's because the password the local computer has does not match the password stored in Active Directory. The two passwords must be in sync for AD to trust a computer.

How do I remove a domain trust relationship?

Firstly you have to stop domain x trusting domain y, then remove domain x's ability to trust domain y:.
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..