I'm trying to create a VM for a VM for our host pool. but it keeps getting DomainTrustCheck faied DomainJoinedCheck faied (This health check verifies that the session host is joined to a domain. If this check fails, it is fatal, and no connections will succeed. To solve this, join the virtual machine to a domain). Sometime it works and sometime it does not work.
I searched everywhere and sometimes they said that its a known issue and had been fixed, but most of the time It did go anywhere.
According to the screenshot you've provided, the virtual machine (VM) you are trying to create has failed the domain join checks. The
DomainJoinedCheckandDomainTrustCheckindicate that the VM is not correctly joined to the domain. This is a crucial step for a VM that belongs to a host pool, especially for services like Windows Virtual Desktop (WVD) or similar.Here are some steps you can try to troubleshoot and resolve this issue:
Test-ComputerSecureChannelto check if the secure channel between the VM and the domain controller is healthy. If it's not, you may need to repair it with the same cmdlet followed by the-Repairswitch.Reset-ComputerMachinePasswordcmdlet using PowerShell, which often helps re-establish secure channel communication.Remove-Computercmdlet and rejoin it to the domain with theAdd-Computercmdlet using PowerShell.Sometimes, these steps do not work because the problem is more complicated and depends on the environment or a specific configuration. In these situations, you need to collect detailed logs and get help from Microsoft or a network/domain expert.
Reference: