Skip to content

Instantly share code, notes, and snippets.

@sebargarcia
Last active April 24, 2020 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebargarcia/83e6e223cfdc420656fd4be5c28acd98 to your computer and use it in GitHub Desktop.
Save sebargarcia/83e6e223cfdc420656fd4be5c28acd98 to your computer and use it in GitHub Desktop.
Enable / Disable Hyper-V on Window
#From command line as administrator RUN
#To turn off HYPER-V
bcdedit /set hypervisorlaunchtype off
Call dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
#To turn on Hyper-V
bcdedit /set hypervisorlaunchtype auto
Call dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment