5

I have a Windows Server 2008 R2 HyperV machine. I had to restore it to an old snapshot, and now I'm getting the following error when logging in through remote desktop using a domain ID:

"the trust relationship between this workstation and the primary domain failed"

I tried running

netdom resetpwd /s:server.company.lab /ud:na\domainAdminId /pd:password

But it didn't help. I tried resetting the password and rebooting the server, but it didn't help.

Any ideas?

Jim
  • 1,555
  • 7
  • 25
  • 30

2 Answers2

3

Try netdom reset : http://technet.microsoft.com/en-us/library/cc788073(WS.10).aspx

Holocryptic
  • 5,665
  • 2
  • 29
  • 37
2

The command I ran actually worked, it just took several minutes for it to take effect for some reason.

netdom resetpwd /s:server.company.lab /ud:na\domainAdminId /pd:password

I'm not sure why. I think somebody was rebooting some of the AD servers at the time I ran the command, so that could have thrown things off.

Jim
  • 1,555
  • 7
  • 25
  • 30
  • I used `netdom resetpwd /s:mydomserver.dom.com /userd sysadminJoe /PasswordD * ` on the server which has a trust issue. (login to localhost) – Tilo Jan 11 '16 at 22:05