Quantcast
Channel: Hyper-V forum
Viewing all articles
Browse latest Browse all 8743

Enable Hyper-V on Windows 10 in Powershell

$
0
0

Hi,

I'm trying to enable Hyper-V on Windows 10 v1809 Pro N, but I'm running into what looks like a pretty nasty bug.  I'm following this document: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

When I enable Hyper-V using this one-liner,

Enable-WindowsOptionalFeature -Online -FeatureNameMicrosoft-Hyper-V -All

it asks to reboot (as expected) but my machine goes into reboot-from-hell -- automatic repair, etc.  I was able to boot into safe mode, disable the Hyper-V feature again, but then it wouldn't even boot into safe mode!  I had to re-install Windows.

If I run the above Powershell, but instead of rebooting, I go into the GUI "Turn Windows Features on or off" (as instructed in the linked document).  I see that the Hyper-V check-box is checked (with a check mark).  Of course, it still crashes when I reboot.

When I don't run that Powershell command, but I use the GUI to enable Hyper-V, the Hyper-V check-box is only partially checked.  Clicking that check-box multiple times will toggle between unchecked and partially checked.  I cannot make it fully checked (with a check mark).  Rebooting with it partially checked works correctly. It restarts fine and Hyper-V is enabled.

I've tried various variations on the Powershell script, but I can't seem to find a script that leaves it in the same state as when you enable it using the GUI.  Seems like a bug to me, and not just a Powershell bug -- the GUI looks weird too.

Explanatory image here: https://chris.heathens.co.nz/images/win10proNbug.png


Viewing all articles
Browse latest Browse all 8743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>