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??

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.