When a computer loses trust with the Active Directory (AD) domain, users may experience authentication issues, failed logins, or other network-related problems. This can happen due to multiple reasons, such as computer password mismatches, time synchronization errors, or network disruptions. Below are six proven methods to fix Active Directory trust relationship issues efficiently.
🔹Disjoin & Rejoin the Domain (dsjoin)
Sometimes, the best approach is to disjoin and rejoin the domain to reset the trust relationship.
Log in as a local administrator.
Open Command Prompt and run: dsjoin /leave
Restart the computer.
Rejoin the domain using: dsjoin /domain DomainName /userD DomainAdminUser /passwordD
Restart the computer again to complete the process.
🔹 Repair Trust via PowerShell
Instead of rejoining, you can attempt to repair the trust using PowerShell.
Log in as a local administrator.
Open PowerShell and run:
Test-ComputerSecureChannel -Repair -Credential DomainName\Administrator
Restart the computer.
🔹 Reset Computer Password Using PowerShell
If the computer account password is out of sync, resetting it may help.
Log in as a local administrator.
Open PowerShell and run:
Reset-ComputerMachinePassword -Server DomainServer -Credential DomainName\Administrator
Restart the computer.
🔹 Reset Secure Channel Using Netdom
Another way to restore trust is by resetting the secure channel using Netdom.
Log in as a local administrator.
Open Command Prompt and run:
netdom resetpwd /Server:DomainController /UserD:DomainAdmin /PasswordD:*
Restart the computer.
🔹 Delete & Recreate Computer Object in Active Directory
If none of the previous methods work, deleting and recreating the computer object in AD may be necessary.
Open Active Directory Users & Computers (ADUC) and delete the problematic computer account.
Log in as a local administrator.
Open PowerShell and unjoin the domain:
Remove-Computer -UnjoinDomainCredential DomainName\Administrator -PassThru -Verbose
Restart the computer.
Rejoin the domain:
Add-Computer -DomainName "DomainName" -Credential DomainName\Administrator -Restart
🔹 Check & Sync System Time
Time mismatches between the workstation and the domain controller can cause trust issues.
Log in as a local administrator.
Run: w32tm /resync
If needed, manually configure time synchronization:
w32tm /config /manualpeerlist:"time.windows.com" /syncfromflags:manual /update
Restart the computer.
0 Comments