Enable or disable Hyper-V

If we use Oracle VirtualBox, it is necessary to disable Hyper-V, since the virtual machines are very slow. We open a CMD window as administrators and run:

bcdedit /set hypervisorlaunchtype off

A reboot is required for it to work.

If we want Hyper-V to work again, it is necessary to execute this other code: (For example to run Windows SandBox).

bcdedit /set hypervisorlaunchtype auto

A reboot is required for it to work.