Please Note:
The Hyper-v module example makes the following assumptions:
- The hypervisor is Windows 2019, Windows 2016, Windows Server 2012 R2 or Windows 8.1 Hyper-V version, and hyper-v powershell cmdlets are available.
- The VM_PATH\VM_NAME folder contains a single exported virtual machine, and it is registered "in place" with the hyper-v manager.
To fulfill this condition, export the virtual machine to the VM_PATH folder, delete the VM VM_NAME from hyper-v manager, and re-import it from the VM_PATH\VM_NAME folder using hyper-v manager or powershell commands (or use the preparevm.ps1 script delivered with this application module).
The NORMAL_STOP and FORCE_STOP values may be "save","stop" or "off". "save" saves the VM current state, "stop" shuts down the VM, "off" turns off the VM.