简体   繁体   中英

hyper-v rollback with login error: The trust relationship between this workstation and the primary domain failed

Today I try to rollback one hyperV vm which is domain joined.

When it is rolled back and started, it displays following error:

The trust relationship between this workstation and the primary domain failed.

I tried solution to log off domain and rejoin domain. It throws following error:

"computer name is already existing in domain"

I also tried solution from following post:
http://implbits.com/About/Blog/tabid/78/post/don-t-rejoin-to-fix-the-trust-relationship-between-this-workstation-and-the-primary-domain-failed/Default.aspx
http://support.microsoft.com/kb/325850

with command to sync account password:

netdom resetpwd /s:server /ud:domain\User /pd:*

Throws following mesage:

The machine account password for the local machine could not be reset.

Access is denied.

At last the issue is fixed by:
1.Export target vm snapshot
2.Import exported snapshot
3.Log in to new vm and unregister from domain
4.Rename vm computer name
5.Rejoin to domain

But I do not think it is a good solution

I was seeing this issue running a windows 10 guest on a Windows 10 HyperV. The following fixed it.

Logon to the VM using a local admin account and run powershell and execute

Reset-ComputerMachinePassword -Server [MyDomainController] -Credential [MyDomain\\administrator]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM