Skip to content

Instantly share code, notes, and snippets.

@alkuzad
Created August 19, 2019 09:55
Show Gist options
  • Save alkuzad/8f4aaf4cdb3f35bf185b7b1f987b0843 to your computer and use it in GitHub Desktop.
Save alkuzad/8f4aaf4cdb3f35bf185b7b1f987b0843 to your computer and use it in GitHub Desktop.
hyperv_toggle_docker.cmd
@echo off
bcdedit | findstr "hypervisorlaunchtype" | findstr Auto > nul
if %ERRORLEVEL% == 1 (bcdedit /set hypervisorlaunchtype auto 1>nul && echo HyperV ON / Docker Mode ) else (bcdedit /set hypervisorlaunchtype off 1>nul && echo HyperV OFF / Virtualbox Mode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment