Documentation
Reset Domain Trust Relationship
Categories
If you get The trust relationship between this workstation and the primary domain failed when attempting to logon then run the following as Admin in Powershell:
Test-ComputerSecureChannel -Repair -Credential (get-credential)