Member server restored from an old snapshot fails domain authentication
Why restoring a domain member from an old snapshot breaks its trust with the domain, and how to repair the secure channel.
What happened
A member server was restored from a snapshot several weeks old. Afterwards, users and services couldn’t authenticate to it (“The trust relationship between this workstation and the primary domain failed”).
Why
Domain members change their machine account password automatically (every 30 days by default). The snapshot holds an older password than the domain controller has, so the secure channel fails.
Fix
Sign in with a local admin account, then:
Test-ComputerSecureChannel -Repair -Credential (Get-Credential)
(or Reset-ComputerMachinePassword -Credential ...). No rejoin or reboot needed in most cases.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.