Primary Trust Relationship … gone

Every so often in my lab a domain joined workstation or server will loose domain trust. It’s usually a password sync issue, the way to fix it is simple: rejoin it to the domain. There is a better way though, use this PowerShell:

Reset-ComputerMachinePassword -Server <FQDN of your DC> -Credential $creds

You’ll be prompted to enter your domain admin creds (or creds of someone who can do djoins). It requires no reboot.

What do you think?