Fixing the trust relationship issue for old VMs

Restoring archived VMs, only to find that the trust relationship between the VM and AD has failed. This is an age old problem that I have encountered throughout my time working with VMs and SharePoint development environments.

I have found a great reference for fixing this issue by Thomas Balkeståhl and his blog post: Fix: The trust relationship between this workstation and the primary domain failed

The key take-away from this blog:

  • Login with a local account.
  • Run the following PowerShell command:
Reset-ComputerMachinePassword `
-Server <Name of any domain controller> `
-Credential <domain admin account>
  • Enter your credentials, when successful you will get the command prompt, no real output to say this has been successful.
  • Finally restart your computer.

Hope this helps you in the future! If you have a better way to archive Hyper-V based VMs do please leave a comment below or contact me.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s