Trust Relationship Failed on AD Windows 11

Problem:

After restoring a Proxmox VM snapshot, or restoring a desktop from a Macrium backup, the Active Directory integration gets broken and user gets a The trust relationship between this workstation and the primary domain failed error when trying to log in.

Fix

Logon to the VM using a local admin account and run powershell and execute

  • https://stackoverflow.com/questions/24775796/hyper-v-rollback-with-login-error-the-trust-relationship-between-this-workstati
Reset-ComputerMachinePassword -Server WSERVER -Credential yuriy@zinchuk.home ; shutdown /r /t 0 /f
Reset-ComputerMachinePassword -Server [MyDomainController] -Credential [MyDomain\administrator]

Fix 2

Instead of removing and readding, try this. Might save some time. This can be pushed out through a RDM like MeshCentral RDM

Test-ComputerSecureChannel -Verbose -Repair -Credential yuriy@zinchuk.home

Then Reboot

https://www.reddit.com/r/sysadmin/comments/11922e5/the_trust_relationship_between_the_workstation/j9kc08k/


Last updated on July 17, 2024. For any questions/feedback, email me at blog@zinchuk.xyz.