本文共 2263 字,大约阅读时间需要 7 分钟。
管理员模式运行 CMD:
//To disable:bcdedit /set hypervisorlaunchtype off//To enable:bcdedit /set hypervisorlaunchtype auto
讲道理用上面的方法是可以禁掉 Hyper-V 的,但我尝试了无数次都不可以。包括在 Android Studio 中启动模拟器时提示让我 disable Hyper-V 的方法。
但每次重启之后还是启动不了 Android Studio 中的 x86 模拟器。
这是微软 Group Ploicy 的原因
Windows 搜索框中输入 System information:, 右下角:
再看下这个链接:
管理员模式打开 CMD, 运行下面的命令:
mountvol X: /scopy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Ybcdedit /create { 0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloaderbcdedit /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-VBSbcdedit /set { 0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:mountvol X: /d
之后再管理员模式运行 CMD:
//To disable:bcdedit /set hypervisorlaunchtype off
Disable the group policy setting that was used to enable Credential Guard.
a. On the host operating system, click Start > Run, type gpedit.msc, and click Ok. The Local group Policy Editor opens.
b. Go to Local Computer Policy > Computer Configuration > Administrative Templates > System > Device Guard > Turn on Virtualization Based Security. Select Disabled. c.Select Disabled.Go to Control Panel > Uninstall a Program > Turn Windows features on or off to turn off Hyper-V.
Select Do not restart.mountvol X: /scopy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Ybcdedit /create { 0cb3b571-2f2e-4343-a879-d86a476d7215} /d "DebugTool" /application osloaderbcdedit /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-VBSbcdedit /set { 0cb3b571-2f2e-4343-a879-d86a476d7215} device partition=X:mountvol X: /d
**Note**: Ensure X is an unused drive, else change to another drive.