The trust relationship between this workstation and the primary domain failed

The trust relationship between this workstation and the primary domain failed

You might not be able to logon to your computer and Windows will sat that The trust relationship between this workstation and the primary domain failed.

image

Typical this will mean that the secure channel with the domain is broken, as explained in this post:

http://blogs.technet.com/b/asiasupp/archive/2007/01/18/typical-symptoms-when-secure-channel-is-broken.aspx

Nowadays we are able to use PowerShell on the failing workstation to fix the issue.

Logon to the workstation with a local administrative user or disconnect the network and logon with a domain administrative user that has previously been logged on to this workstation. By disconnecting the network we can sign in with cached credentials without checking the trust relationship.

When logged on remember to connect the network again and start PowerShell as administrator.

image

Now use this PowerShell command replacing DC with your domain controller and domainuser with a valid domain and administrative user:

Reset-ComputerMachinePassword -Server DC –Credential domainuser

image

You will be prompted for the password:

image

After the change sign off and try to sign in again, now the trust relationship should work.

http://technet.microsoft.com/en-us/library/hh849751.aspx

But it will only work if you use PowerShell version 3.0 Windows Management Framework 3.0

+ posts

Table of Contents

Share this post
Search blog posts
Search
Authors
Modern Workplace consultant and a Microsoft MVP in Enterprise Mobility.

Modern Workplace consultant and a Microsoft MVP in Windows and Devices.

Infrastructure architect with focus on Modern Workplace and Microsoft 365 security.

Cloud & security specialist with focus on Microsoft backend products and cloud technologies.

Cloud & security specialist with focus on Microsoft 365.

Cloud & Security Specialist, with a passion for all things Cybersecurity

Cloud and infrastructure security specialist with background in networking.

Infrastructure architect with focus on design, implementation, migration and consolidation.

Infrastructure consultant with focus on cloud solutions in Office365 and Azure.

Modern workplace and infrastructure architect with a focus on Microsoft 365 and security.

follow us in feedly
Categories

Follow on SoMe