Created
August 19, 2019 09:55
-
-
Save alkuzad/8f4aaf4cdb3f35bf185b7b1f987b0843 to your computer and use it in GitHub Desktop.
hyperv_toggle_docker.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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