Domain Trust Relationship Failed

Log on to the computer using a local administrator account.

Run PowerShell as Administrator.

Enter the following command to prompt for domain credentials.

$credential = Get-Credential

A security prompt will appear. Provide domain credentials with administrative permissions over the computer account.

Enter the following command to reset the computer account password.

Reset-ComputerMachinePassword -Credential $credential

Close PowerShell and log off.

 

Credits