How to disable Hyper-V in command line?

后端 未结 9 1195
南旧
南旧 2020-11-29 14:32

I\'m trying to open VMware, it says that VMware player and Hyper-V are not compatible. I found it here, but it\'s not working using the command it offers.

I tried to

相关标签:
9条回答
  • 2020-11-29 15:07

    You can have a Windows 10 configuration with and without Hyper-V as follows in an Admin prompt:

    bcdedit /copy {current} /d "Windows 10 no Hyper-V"
    

    find the new id of the just created "Windows 10 no Hyper-V" bootentry, eg. {094a0b01-3350-11e7-99e1-bc5ec82bc470}

    bcdedit /set {094a0b01-3350-11e7-99e1-bc5ec82bc470} hypervisorlaunchtype Off
    

    After rebooting you can choose between Windows 10 with and without Hyper-V at startup

    0 讨论(0)
  • 2020-11-29 15:07

    I tried all of stack overflow and all didn't works. But this works for me:

    1. Open System Configuration
    2. Click Service tab
    3. Uncheck all of Hyper-V related
    0 讨论(0)
  • 2020-11-29 15:16

    The OP had the best answer for me and it appears that others have figured out the -All addition as well. I set up two batch files, then shortcuts to those so you can set the Run As Admin permissions on them, easy-peasy.

    Batch Off

    Call dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All
    

    Batch On

    Call dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
    

    Right-click -> create desktop shortcut. Right-click the shortcut -> properties -> under the shortcut tab -> Advanced -> Run as admin

    0 讨论(0)
  • 2020-11-29 15:20

    This command works

    Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
    

    Run it then agree to restart the computer when prompted.

    I ran it in elevated permissions PowerShell on Windows 10, but it should also work on Win 8 or 7.

    0 讨论(0)
  • 2020-11-29 15:23

    In an elevated Command Prompt write this :

    To disable:

    bcdedit /set hypervisorlaunchtype off
    

    To enable:

    bcdedit /set hypervisorlaunchtype auto 
    

    (From comments - restart to take effect)

    0 讨论(0)
  • 2020-11-29 15:27

    Command line:

    dism /online /disable-feature /featurename:microsoft-hyper-v-all

    If anyone is getting:

    We couldn’t complete the updates, Undoing changes

    after trying to disable the Hyper-V, try uninstalling Hyper-V virtual network adapters from your Device Manager->Network Adapters

    0 讨论(0)
提交回复
热议问题