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.1Open an elevated PowerShell window, run Test-ComputerSecureChannel, if it returns "False", run command
$creds = Get-CredentialTest-ComputerSecureChannel -Repair -Credential $credsAlternatively, 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.