博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
如何 禁掉 Hyper-V && 如何解决禁不掉 Hyper-V 的问题
阅读量:4285 次
发布时间:2019-05-27

本文共 2263 字,大约阅读时间需要 7 分钟。

禁掉 Hyper-V

管理员模式运行 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

解释性的: Resolution

  1. 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.

  2. Go to Control Panel > Uninstall a Program > Turn Windows features on or off to turn off Hyper-V.

    Select Do not restart.

  3. Delete the related EFI variables by launching a command prompt on the host machine using an Administrator account and run these commands:
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.

上面的 Resolution 居然还有中文的。。。

你可能感兴趣的文章
iOS. Xcode7.1中在请求HTTP时报错的解决方法
查看>>
iOS 网络请求数据工具封装
查看>>
iOS之电商项目中的注意事项
查看>>
iOS文字上面划线的几中方式
查看>>
iOS MJRefresh的用法
查看>>
iOS 字典转模型的几中方法、KVC、runtime、YYModel、MJExtention
查看>>
iOS之coreData的原理和使用以及coreData中的多线程问题(二)
查看>>
iOS之支付宝集成(二)
查看>>
java基础(一)Java学习路线
查看>>
iOS之苹果自带的json解析NSJSONSerialization(序列化)
查看>>
iOS中坐标转换
查看>>
java 基础二
查看>>
java基础(三)方法/数组/堆栈/
查看>>
java基础(四)二维数组/
查看>>
java基础(五)面向对象/类/对象/形式参数/局部和成员变量
查看>>
java基础(六)关键字/private/this/static/构造方法/
查看>>
java基础(七)/面向对像
查看>>
java基础(八)Math/代码块/继承成员方法指南的关系/继承中成员变量之间的关系/方法的重写/继承中构造方法之间的关系/this和super的区别
查看>>
iOS之AFNetWorking基本用法(一)上传、下载
查看>>
java基础(九)关键字final/多态/抽象类/关键字abstract/接口
查看>>