This page by David Papkin contains links to information about Microsoft Windows Server.
How to fix “The trust relationship between this workstation and the primary domain failed” error. See below:
RESET SECURE CHANNEL
netdom reset <machinename> /domain:<domainname>
Links to pages for specific windows server versions below.
End of David Papkin page containing links to information about Microsoft Windows Server.