I recently moved a Windows Server 2012 R2 domain controller to another Hyper-V host and upgraded it to Windows Server 2025. It is currently the only domain controller, and the original and upgraded systems were never connected to each other. Some domain-joined PCs occasionally report, "The trust relationship between this workstation and the primary domain failed." Running `Test-ComputerSecureChannel -Repair` restores access, but I would prefer to identify and permanently fix the underlying problem. Could this be caused by the way the server was copied or upgraded, by stale computer-account passwords, or by time synchronization? What migration and recovery steps should I take? I also plan to add another domain controller soon.
3 Answers
Running with one DC is a serious availability and recovery risk, and it also makes migration mistakes much harder to recover from. Validate Active Directory health and DNS first, then build at least two clean, supported Server 2025 domain controllers, replicate the directory and SYSVOL, transfer the FSMO roles, verify DNS and authentication, and only then demote the old or upgraded server. If the existing server was in-place upgraded or restored from a copied image, be especially cautious: a clean parallel migration is safer than continuing to rely on that installation.
The most likely cause is that the domain controller was copied or restored from an earlier point while the original was still being used. Each computer has a machine-account password in Active Directory, and the computer also stores its own copy. If a workstation changed that password against the old DC and you later replaced it with a copy that predates the change, the two sides no longer match. Repairing the secure channel updates the computer account on the current DC, so it can be a permanent fix for each affected machine—not merely a temporary workaround. The important part is to confirm exactly how the move and upgrade were performed and avoid using snapshots or cloned DCs as a migration method.
Check time synchronization as well. Kerberos authentication can fail when the workstation and DC differ too much, especially in a virtualized environment. Make sure the DC uses a reliable authoritative time source and that Hyper-V integration settings are not continually forcing an incorrect host time into the guest. Check the host, DC, and clients for time drift and review the System and Directory Service event logs.

I would avoid making more copies of the current DC. Once the new controllers replicate successfully and clients are using them for DNS, retire the questionable server through a normal demotion if its health checks pass.