Skip to content

Troubleshoot a Failed Windows Domain Trust Relationship

Admin
November 18, 2026
5 min read
Intermediate
💻 Target OS: Windows Server 2025 / 2022 (AD DS)

Before you begin

  • Applies to:Domain-joined Windows 11 Pro or Enterprise and Windows Server 2022 or 2025 member servers. Domain controllers and Entra-only devices require separate procedures.
  • Where to start:Sign in on the affected machine with a verified local administrator account and open elevated PowerShell 7 or later.
  • What you need:Use the real domain, host, and account values in the examples. Keep the same shell open for commands that share variables.
Guide tools
Guide tools
0/0 Steps (0%)

Use this guide when Windows reports that the trust relationship between the workstation and the primary domain failed. The secure channel uses the computer account. A user password reset will not repair a broken computer channel.

Troubleshooting Steps

01

Confirm domain membership and DNS

Local client

Run on the affected computer. The device should report PartOfDomain as True. If it does, check that the active adapter uses the organization’s AD resolvers and that the domain’s LDAP SRV lookup returns expected controllers.

Terminal window
Get-CimInstance Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomain
Get-DnsClientServerAddress -AddressFamily IPv4
Resolve-DnsName -Name '_ldap._tcp.dc._msdcs.corp.example.com' -Type SRV
02

Check controller discovery and clock

Dependencies

Replace the sample domain and controller. A controller lookup should return a valid DC name. Inspect the time source and synchronization status. If DNS, VPN routing, or time is broken, fix that dependency and retest before attempting repair.

Terminal window
nltest.exe /dsgetdc:corp.example.com
w32tm.exe /query /status
$Dc = 'dc01.corp.example.com'
Test-NetConnection -ComputerName $Dc -Port 389
03

Test the member’s secure channel

Diagnosis

Run elevated on the affected member. True means the test succeeded. False with healthy prerequisites points to a channel problem. Ask the AD team to confirm the computer object is present and enabled and investigate duplicate names, recent restore, or conflicting state across controllers.

Terminal window
Test-ComputerSecureChannel -Server $Dc -Verbose
04

Repair the confirmed channel and retest

Approved change

Use a named account delegated to repair the computer account. If repair reports False or errors, stop and collect the Netlogon events and controller name. If it succeeds, rerun the read-only test and test a fresh domain sign-in while connected to the network. Schedule a restart only if required by your recovery procedure.

Terminal window
$Credential = Get-Credential -Message 'Enter the delegated domain repair account'
if (Test-ComputerSecureChannel -Repair -Server $Dc -Credential $Credential -ErrorAction Stop) {
Test-ComputerSecureChannel -Server $Dc -Verbose
} else {
throw 'Secure channel repair returned False. Review Netlogon and AD evidence.'
}

References

Comments