Solving error “The trust relationship between this workstation and the primary domain failed.”

Last week I reverted an snapshot on an Virtual Server. When I restarted the VM, and try to logon, I received the following error:

“The trust relationship between this workstation and the primary domain failed.”

My domain admin account was unable to logon. My local admin account was able to logon. How to solve this issue without removing this VM from the domain.

Solution.

First, logon using the local administrator credentials.

Open an elevated Command Prompt and type the following command:

netdom resetpwd /s:[FQDN Domain Controller] /ud:[domain name]\administrator /pd:*

[FQDN Domain Controller] fill in the Domain Controller server name and domain.

[Domain name] fill in the domain name.

After running this command, restart the server and logon with the domain credentials. If everything went ok, you are able to logon on and the trust relationship is restored again.

For more information about the netdom command, see: https://technet.microsoft.com/en-us/library/cc772217(v=ws.11).aspx

Related articles:

Disclaimer.
The information in this article is provided “AS IS” with no warranties, and confers no rights. This article does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion.

Marco

Marco works for ViaData as a Senior Technical Consultant. He has over 15 years experience as a system engineer and consultant, specialized in virtualization. VMware VCP4, VCP5-DC & VCP5-DT. VMware vExpert 2013, 2014,2015 & 2016. Microsoft MCSE & MCITP Enterprise Administrator. Veeam VMSP, VMTSP & VMCE.