#checking the hyper-V state:
bcdedit
Windows Boot Loader ------------------- identifier {current} device partition=C: path \WINDOWS\system32\winload.efi description Windows 10 locale en-GB inherit {bootloadersettings} recoverysequence {a14884aa-6117-11e7-a334-f430b9153789} displaymessageoverride Recovery recoveryenabled Yes badmemoryaccess Yes isolatedcontext Yes allowedinmemorysettings 0x15000075 osdevice partition=C: systemroot \WINDOWS resumeobject {a14884a8-6117-11e7-a334-f430b9153789} nx OptIn bootmenupolicy Standard hypervisorlaunchtype Off
#turn on
bcdedit /set hypervisorlaunchtype auto
#turn off
bcdedit /set hypervisorlaunchtype off
bcdedit