I am using Workstation 17 Pro on a Windows 11 host.
I want to suspend running VMs when the Windows host shutdown or reboot.
I created a batch file containing the command to suspend the target VM and registered it in the Task Scheduler, using system shutdown as the trigger.
This allowed the VM to suspend properly during manual restarts.
However, when an automatic restart occurs, such as after a Windows Update, the suspend task is triggered by the Task Scheduler but is forcibly terminated after a few seconds, causing the VM to be forcefully stopped instead of suspended.
Could someone provide a method or knowledge on how to successfully suspend the VM during automatic restarts initiated by the Windows OS?
Best Regards,