I'm looking for permanent fix to avoid issue "The trust relationship between this workstation and the primary domain failed " after machine restore its state with automate checkpoint restore in SCVMM/Hyper-V. I know i have to use below command each time when machine restore:
Test-ComputerSecureChannel - Repair -Credential (Get-Credential)
Is there a solution to e.g. inject this command as a script to virtual machine before restore? Any idea??