Skip to content

Instantly share code, notes, and snippets.

@haeramkeem
Last active April 14, 2022 03:57
Show Gist options
  • Save haeramkeem/801cc8f8cdc1e17063686e1e28f85011 to your computer and use it in GitHub Desktop.
Save haeramkeem/801cc8f8cdc1e17063686e1e28f85011 to your computer and use it in GitHub Desktop.
#!/bin/powershell
# Enable / Disable hypervisor to use WSL2 with VirtualBox
# ref: https://github.com/MicrosoftDocs/WSL/issues/798#issuecomment-1063862157
# Enable hypervisor
bcdedit /set hypervisorlaunchtype auto
# Disable hypervisor
bcdedit /set hypervisorlaunchtype off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment