You see the error message "Trust relationship between this workstation and the primary domain failed" on the screen when:
To resolve this problem, follow any of the solutions given below:
Follow the steps given below to remove the computer from the domain, and then reconnect it:
You can run a script to rejoin the computer to the domain:
$credential = Get-Credential
$serverstr = Read-Host -Prompt 'Enter domain name'
Reset-ComputerMachinePassword -Credential $credential -Server $serverstr
If you do not want to rejoin the machine to the domain or if rejoining fails, you can access the workstation using its local account instead.
Keywords: Trust relationship failed, rejoin computer to domain.