Skip to content

Instantly share code, notes, and snippets.

@Adron
Created February 4, 2019 17:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Adron/85f9b7530c330d4e68d24cd062780c56 to your computer and use it in GitHub Desktop.
Save Adron/85f9b7530c330d4e68d24cd062780c56 to your computer and use it in GitHub Desktop.
Disabling/Enabling Hyper-V via Powershell ("Run As Administrator")
# Remember, all of these commands need executed via Powershell that is started/opened with "Run As Administrator".
# Disabling Hyper-V
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
# Enabling Hyper-V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# You may also want DSIM enabled with all this, here's that detail.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment