Created
July 23, 2019 12:13
-
-
Save id4ehsan/9aa6870d55ade8910fdfa3eb02c246f2 to your computer and use it in GitHub Desktop.
disable hyper-v
This file contains hidden or 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
Disable the group policy setting that was used to enable Credential Guard. | |
On the host operating system, click Start > Run, type gpedit.msc, and click Ok. The Local group Policy Editor opens. | |
Go to Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security. | |
Select Disabled. | |
Go to Control Panel > Uninstall a Program > Turn Windows features on or off to turn off Hyper-V. | |
Select Do not restart. | |
Delete the related EFI variables by launching a command prompt on the host machine using an Administrator account and run these commands: | |
mountvol X: /s | |
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y | |
bcdedit /create {0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloader | |
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} path "\EFI\Microsoft\Boot\SecConfig.efi" | |
bcdedit /set {bootmgr} bootsequence {0cb3b571-2f2e-4343-a879-d86a476d7215} | |
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} loadoptions DISABLE-LSA-ISO,DISABLE-VBS | |
bcdedit /set {0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X: | |
mountvol X: /d | |
Note: Ensure X is an unused drive, else change to another drive. | |
Restart the host. | |
Accept the prompt on the boot screen to disable Device Guard or Credential Guard. | |
Actually, this is a conflict that can be simply resolved by temporarily disabling Hyper-V hypervisor: | |
bcdedit /set hypervisorlaunchtype off | |
Restart is required. Apparently, the side effect is that Hyper-V virtual machines cannot be started after this: | |
image | |
And so is Docker: | |
image | |
To get Hyper-V back, just turn its hypervisor back on: | |
bcdedit /set hypervisorlaunchtype auto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment