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:
[code language=”powershell”]
Reset-ComputerMachinePassword `
-Server `
-Credential
[/code]
- 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.