Skip to main content

Fixing Trust Relationship Issue between Client and Domain

ยท One min read
Hoang Duc Tuan
Hoang Duc Tuan
System Administrator

Origin document here

Fixing Trust Relationship Issue between Client and Domain

Method 1: Manualโ€‹

Steps to resolve the issue:

1. Log in to the Local Admin account on the machine (Make sure IT has the necessary rights to log in to the Local Admin account. This account should only be known by IT, not shared with users).โ€‹

2. Disjoin the computer from the domain.โ€‹

3. Restart the computer.โ€‹

4. Join the computer back to the domain.โ€‹

5. Log in with the user's domain account (Double-check the user's account name on AD).โ€‹

Reference link

https://lazyadmin.nl/it/how-to-fix-trust-relationship-between-this-workstation-and-the-primary-domain-failed/

Method 2: Automaticโ€‹

Create a PS1 file with following code

Reset-ComputerMachinePassword -Server dc01.gearhq.gearinc.com -Credential gearhq\adjoin

1. Log in to the local admin account on the computer.โ€‹

2. Run the script with Admin rights in PowerShell.โ€‹

3. Enter the Admin password.โ€‹

4. Restart and log back in with the User's account.โ€‹