When you try to log in on the domain (Active Directory) computer, you get an error \”The trust relationship between this workstation and the primary domain failed\”. The reason for this error is that either there is another computer with the same name that has been joined the same Active Directory, or the computer account has not been used in a long time, so the computer account password has expired. You can of course still disjoin the computer from the AD and join it again, but there is a more simple way and requires less administrative effort.
Open Command Prompt with elevated privileges (Run as Administrator) and type the following command:
netdom resetpwd /s: /ud: /pd:*
s: – Is your domain controller
ud: – Is a user that is a member of the Domain Admins group and should be used in the format domain\user, ie. sefnet\admin
pd:* – Asterisk means that you will be prompted for the password and the password will not be echoed.
After password reset, restart your computer and log with your domain account