If the trust relationship fails between a client machine and AD run the following command to fix it:
Reset-ComputerMachinePassword -Credential (Get-Credential) -Server "YourDomainController"
YourDomainController = the FQDN or ip address of the AD server