Trust Relationship in Domain Controller – The target principal name is incorrect

In case that your domain controller can not replicate with other domain controllers and you suspect that it is connected with trust relationship is broken (The target principal name is incorrect) try to do the following:

klist purge
netdom resetpwd /server:westus-ad02 /ud:global\mariusz.ferdyn-adm /pd:Confirm101%ab
powershell -command “Restart-Service kdc -Force”
powershell -command “Restart-Service ntds -Force”
repadmin /syncall /AePdq