Hi there,
Have you configured automatic startup and shutdown of Hyper V?
If so in the Automatic Stop Action section, you can set what to do with your virtual machines if the host is shut down or restarted. You can select Save the virtual machine state so that at the next startup, the virtual machine will resume from this point and will start the same host as predefined.
You can view and change the automatic startup and shutdown settings of your Hyper-V virtual machines using PowerShell.
Display the current startup and shutdown settings of all VMs:
Get-VM –VMname * | Select-Object VMname,AutomaticStartAction,AutomaticStartDelay,AutomaticStopAction
--If the reply is helpful, please Upvote and Accept it as an answer–