Master VM Gets Error "The Trust Relatioship Between This Workstation and The Primary Domain Failed" When Trying to Logon to it Using a Domain Account

Master VM Gets Error "The Trust Relatioship Between This Workstation and The Primary Domain Failed" When Trying to Logon to it Using a Domain Account

book

Article ID: CTX257591

calendar_today

Updated On:

Description

When trying to log on to master VM using a domain account right after capturing a vDisk from it, an admin user gets error "The trust relationship between this workstation and the primary domain failed."



Resetting or deleting and recreating machine account from PVS console does not resolve issue 

Resolution

Boot target from hard drive and log on using a local administrator account.
Test the secure channel between the local computer and its domain, as per https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-computersecurechannel?view=powershell-5.1
Open an elevated PowerShell window, run Test-ComputerSecureChannel, if it returns "False", run command
$creds = Get-Credential
Test-ComputerSecureChannel -Repair -Credential $creds

Alternatively, run Reset-ComputerMachinePassword $creds.

Once the machine account password is reset, capture a new vDisk.

Problem Cause

A problem on the vDisk image was preventing PVS to reset the target's machine account password.