Windows troubleshooting · Microsoft sources checked 30 October 2026
A domain sign-in failure does not automatically mean the computer needs to leave and rejoin Active Directory. Start by separating connectivity, computer-account trust and a user-account problem. This guide explains the checks to make before changing domain membership.
This is a source-based support guide. Commands show what to check and how to interpret results; they are not claimed results from a reproduced incident.
Am I affected?
| Situation | Use this guide? |
|---|---|
| Windows 11 PC joined to an on-premises Active Directory domain, with a workstation trust error | Yes. Check the network path before attempting repair. |
| Entra-only joined, workgroup or personal PC | No. These domain secure-channel repair steps do not apply. |
| Domain controller | No. Use the domain-controller troubleshooting tools and procedures. |
| Only one user fails on several otherwise healthy PCs | Investigate that account as well; do not assume every PC has broken trust. |
1. Record the failure before changing anything
Keep the exact error, time, affected device and recent changes in the support ticket. Note whether it happens on the corporate LAN, remotely or both. Record whether an authorized local administrator can sign in. Avoid collecting passwords or posting unredacted company identifiers in public comments.
Microsoft identifies computer-password mismatch as a possible cause and documents NETLOGON event 3210 as relevant evidence. A restored device, duplicate identity or directory-side change deserves investigation when the fault repeatedly returns. Microsoft secure-channel troubleshooting.

2. Check connectivity and domain membership
Use an approved local administrator session on the affected member PC. Connect to the corporate network or the organization’s supported VPN path. Confirm that DNS and firewall routing permit access to domain controllers; changing a domain PC to public DNS is not a trust repair. Microsoft recommends resolving network faults before repairing a password mismatch.
Get-CimInstance Win32_ComputerSystem | Select-Object Name, Domain, PartOfDomain
ipconfig /allExpected evidence: PartOfDomain should be True for this procedure. The IP configuration helps the support team check its approved DNS servers and active network adapter. These checks do not prove that every Active Directory port is reachable. Use your organization’s domain-controller connectivity tests if the path is uncertain. Microsoft connectivity guidance.
3. Test the secure channel
Open Windows PowerShell as administrator on the domain-member computer:
Test-ComputerSecureChannel -VerboseTrue means the test succeeded at that moment. False means it failed; inspect the detailed error and connectivity before choosing a repair. An access error is not proof of a corrupt user profile. This cmdlet is not suitable for testing domain controllers.
4. Repair only after the prerequisites are met
With network access confirmed, local administrative access available and approval under your organization’s change process, use an account authorized to repair the computer’s domain trust:
Test-ComputerSecureChannel -Repair -Credential (Get-Credential) -VerboseEnter credentials only in the Windows prompt. Do not paste a password into a script. The command changes the secure channel; it is not a read-only diagnostic. If it fails, retain the error and escalate instead of repeating resets against different domain controllers. Microsoft command reference.
When KB5124008 and KB5124010 apply
Microsoft documented a separate Machine Identity Isolation enforcement problem after KB5124008 or KB5129195 in affected configurations. KB5124010 and later updates address that specific defect. Match the installed build and policy configuration to the advisory before attributing a general trust failure to it. Do not broadly disable Credential Guard as a troubleshooting shortcut. Microsoft release health.
Verify recovery and investigate repeat failures
- Run the read-only secure-channel test again and record the result.
- Save work, then test a fresh domain sign-in while connected to a domain controller.
- Test the business resource that originally failed. A successful cached sign-in alone is insufficient evidence.
- If it returns, investigate device restores, duplicate names, computer-account changes and directory replication with the AD team.
Domain rejoining may be appropriate under a planned procedure, but capture evidence first and confirm local access, recovery keys and business impact. Do not delete computer objects or user profiles simply to clear an error.
Related Windows guides
- KB5066470: Wi-Fi and VPN automatic sign-in — check the connection path before domain repair.
- Remote Desktop error 0xC000000D — a different connection failure.
- Browse Windows troubleshooting guides.