“Trust Relationship Between this workstation and domain failed”

This is a pretty annoying thing that happens when coming back from an old snapshot. Usually over a week. You roll back a snap and then find out you cannot log in with domain accounts. This sucks and makes the roll back more annoying than it has to be. Fortunately the fix is easy. As long as you have the local admin password handy or a cached domain credentials.

Steps below for local admin

  1. Log into windows box with local admin password.
  2. Open Up power shell as an administrator
  3. Type the following commands one after another.
     $credential = Get-Credential DomainCredentials
    Reset-ComputerMachinePassword -Server DomainController -Credentials $credentials
  4. Reboot the machine and log in.

Steps Below for cached credentials

  1. Log into VCenter server where VM is located
  2. Edit settings on VM
  3. Disconnect all network cards on the VM (Do not drop the NIC’s just disconnect)
  4. Log in with cached domain credentials. ( If this doesn’t work and you don’t have the local admin you are SOL)
  5. Open Up power shell as an administrator
  6. Type the following commands one after another.
     $credential = Get-Credential DomainCredentials
    Reset-ComputerMachinePassword -Server DomainController -Credentials $credentials
  7. Reboot the machine and log in

2 thoughts on ““Trust Relationship Between this workstation and domain failed””

  1. Wouldn’t be a bit less complicated to remove the computer from the domain, add it back and reboot?
    Just saying…

    1. Certainly could be depending on the server! But you can run into a lot of issues with applications doing that. This isn’t hard and allows you to keep the connection to the domain. All in all it will take about the same time to perform then a removal from domain and re-add.

Leave a Reply

Your email address will not be published. Required fields are marked *