Fix: The Trust Relationship Between This Workstation and the Primary Domain Failed – Windows

Fix: The Trust Relationship Between This Workstation and the Primary Domain Failed – Windows

If you attempt to remote desktop (RDP) to a Windows machine on a domain, you may receive an error message about a trust relationship failing which prevents you from logging in.

 

The Trust Relationship Between This Workstation and the Primary Domain Failed.

 

*If this is physical machine, disconenct the machine from the network and login with the last password of the user account as well. This is known as the cached password method.

 

If you know the Administrator password to the local machine, try the steps below. If you do not know this, you will have to remove and re-join the machine to the domain.

Note: If you do not know the local username/password but have direct access to the machine and logged into it prior with your domain account, disconnect the network connection (unplug cable or turn off wireless) and login with your domain credentials. This will allow you to login. Windows keeps your last known cache domain credentials stored in memory.

 

  1. Login to the machine using the combination below.
 

               Username:           .\administrator (or local username you know exists)

               Password:             (local password)

 

  1. Open Windows PowerShell as administrator (must be PowerShell 3 or higher) and type these commands.
 

Run this first:

Test-ComputerSecureChannel –

Now:

Repair -Credential (get-credential)

Next, your Domain Admin Account (DOMAIN\USER):

$credential = Get-Credential

Then:

Reset-ComputerMachinePassword -Server

Finally:

ClosestDomainControllerNameHere -Credential $credential

 







* Please use the comment form below. Comments are moderated.*



Related Posts

 

Comments 3

Guest - Nabil on Friday, 23 December 2022 07:27

Why did you split the commands like that??

Why did you split the commands like that??
Guest - Muffaddal Hussain on Wednesday, 16 January 2019 01:10

Thanks Dear... U r lovely.. Just disconnect the network and logged in from cache password..

Thanks Dear... U r lovely.. Just disconnect the network and logged in from cache password..:D
urzh on Thursday, 07 March 2019 09:17

That will work too

That will work too :)
Thursday, 25 April 2024