The client Exchange server has been off-domain today, The
"Trust relationship between this workstation and the primary domain failed" occurs when you log on by using a domain account.
The possible cause of this is:
- There are multiple SIDS computers in the domain;
- computer objects are accidentally deleted in AD,
- client account password update failed;
- time exceeds 5 minutes;
- AD Replication issues and so on;
computer logon behavior:
Workaround:
- First verify that the computer object exists in the Computers OU (or other OU) in active Directory;
- Log on to the computer using the server's local administrator (. \administrator);
- Open PowerShell using a local administrator,
- Enter the following command to fix it;
Test-computersecurechannel-repair-server < name of any domain controller >-credential (get-credential)-verbose or Test-computersecurechannel-repair-server < name of any domain controller >-credential Domainname\administrator-verbose or Reset-computermachinepassword-server < name of any domain controller >-credential < domain Administrator account
- Enter the domain Administrator account and password
- It is recommended that you restart your computer without restarting.
The problem is resolved after the restart is complete.
Windows Server r2/2016 Trust relationship between this workstation and the primary domain failed