Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable Hyper-V in command line?

People also ask

How do I disable Hyper-V in Bcdedit?

Open command prompt window as an administrator Run “bcdedit /set hypervisorlaunchtype off” to disable hypervisor Close the command prompt after executing the commands and restart the system.

How do I force stop a Hyper-V virtual machine?

Force stop by the process On the server where the virtual machine is running, open the task manager, go to the Details tab 1 , locate the vmwp.exe process that has the GUID for the user name virtual machine then select the 2 and click End Task 3 to force the shutdown.

Do I need to disable Hyper-V?

But sometimes you may no longer need Hyper-V on a machine. This can be the case when you want to run another type 2 hypervisor on the same Windows machine, for example, VirtualBox or a VMware Workstation. Hyper-V can cause issues and you will have to disable and uninstall it.

How do I run Hyper-V from command prompt?

To start the Hyper-V administration tool, do the following: Click Start, All Programs, Administrative Tools, and then choose Hyper-V Management for the tool to launch.


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)


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


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.


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