Windows Server 2025 trust relationship issues - resolution?

Joe Grover 646 Reputation points
2025-08-14T11:57:11.6+00:00

I see a number of posts online about this dating back to the release of Server 2025, but wondering what the root cause/fix is.

We deployed two new servers in March that had Windows Server 2025. Users at both of these locations are periodically having issues when logging into the domain, getting the error that the trust relationship has failed between the workstation and the domain controller.

We can fix it using Reset-ComputerMachinePassword or Test-ComputerSecureChannel -Repair, but the problem persists--sometimes with the same machine.

Some people have posted that the issue does not affect Windows 11 24H2, but we have plenty of affected 24H2 machines (including one that we just freshly imaged last week and logged into the domain in one regional office, then shipped it out to the end user in an affected office who immediately had this problem trying to log in for the first time).

I see some people pointing at KB5055523 as a workaround patch until a final solution is applied, but all affected servers and workstations already have this patch applied from the cumulative updates.

I'm sure there's something I'm missing, but I'm not sure what.

Windows for business | Windows Server | Directory services | Other
0 comments No comments

Answer accepted by question author
Harry Phan 32,185 Reputation points Independent Advisor
2025-08-15T07:28:39.9766667+00:00

Dear Joe Grover,

Based on your report and similar cases across the community, the issue appears to stem from changes introduced in Windows Server 2025 that affect secure channel maintenance between domain-joined devices and domain controllers. Specifically:

  • Devices intermittently fail to authenticate with the domain, resulting in the error: “The trust relationship between this workstation and the primary domain failed.”
  • The issue persists even after using Reset-ComputerMachinePassword or Test-ComputerSecureChannel -Repair.
  • Affected environments often have all domain controllers upgraded to Server 2025, and the issue is more prevalent in clients running Windows 10/11 up to 24H2, though some 24H2 machines are still impacted2.

The root cause is linked to how Windows Server 2025 handles machine account password changes, which are essential for maintaining trust relationships. When all domain controllers are upgraded, certain security protocols may prevent clients from updating their machine account passwords, leading to authentication failures.

A temporary workaround has been identified:

On Domain Controllers:

Policy: Domain controller: Refuse machine account password changes

Setting: Enabled

On Domain Members:

  • Policy: Domain member: Maximum machine account password age
  • Setting: 0

You mentioned that KB5055523 has already been applied. This cumulative update addresses several Kerberos-related issues, but it does not fully resolve the trust relationship failures in all environments. Microsoft is actively investigating the issue and may release further updates to address the underlying protocol behavior5.

We recommend the following:

Implement the temporary Group Policy workaround to stabilize affected machines.

Monitor Microsoft’s update channels for a permanent resolution.

Consider retaining at least one older domain controller (e.g., Server 2022) if feasible, as mixed environments appear less affected.

Use Intune or similar tools to deploy automated remediation scripts for affected endpoints, especially in distributed environments.

If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

Best regards,

Harry Phan

Was this answer helpful?

3 people found this answer helpful.

1 additional answer

Sort by: Oldest
  1. Eric LE CORRE 35 Reputation points
    2026-03-02T08:40:56.11+00:00

    no more troubles since we migrato 25H2

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.