Trust Relationship Between This Workstation and the Primary Domain Failed

MicrosoftHaving never seen the below error message before, I have now seen it twice in the last few weeks.

The first time was when I started a VM running an old version of Microsoft Dynamics GP for the first time in a few months; the second was when I copied the VM from my laptop onto the server which had a previous copy of the domain controller VM.

The second instance was not unexpected, but at least I knew how to resolve the problem having seen it recently on a VM which hadn’t been run for a while.

The error is produced when you try to log into Windows:

Trust relationship error when logging in

The trust relationship between this workstation and the primary domain failed

The solution is to remove the computer from the domain, restart the computer and then add it back to the domain.