Had this error happen with a Microsoft Windows 2008 R2 server running in a VM.
When logging in to Windows, if using any domain accounts, getting the error
“The trust relationship between this workstation and the primary domain failed"
The obvious fix is to rejoin the domain but a much simpler and probably less invasive method is to run the netdom command
Login with a local machine admin account and run:
netdom.exe resetpwd /s:<server> /ud:<user> /pd:*
<server> = a domain controller in the joined domain
<user> = DOMAIN\User format with rights to change the computer password. I used domain admin.
More info at
http://implbits.com/About/Blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/Default.aspx
When logging in to Windows, if using any domain accounts, getting the error
“The trust relationship between this workstation and the primary domain failed"
The obvious fix is to rejoin the domain but a much simpler and probably less invasive method is to run the netdom command
Login with a local machine admin account and run:
netdom.exe resetpwd /s:<server> /ud:<user> /pd:*
<server> = a domain controller in the joined domain
<user> = DOMAIN\User format with rights to change the computer password. I used domain admin.
More info at
http://implbits.com/About/Blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/Default.aspx