After restoring a HyperV snapshot, I get “the trust relationship between this workstation and the primary domain failed”

active-directoryhyper-vremote desktopsnapshot

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?