Disable Hyper-V with PowerShell and bcdedit
Disable and re-enable the Hyper-V role and hypervisor launch on Windows with PowerShell, DISM and bcdedit.
This procedure disables the Hyper-V role and the hypervisor launch at Windows startup. Open a terminal in administrator mode (PowerShell or Command Prompt).
The procedure is adapted from a community guide: ugetfix, how to disable Hyper-V in Windows 10.
Repair the Windows image before disabling (optional)
The guide's author first repaired the system image and cleaned up components:
Dism /Online /Cleanup-Image /RestoreHealth
Dism.exe /online /Cleanup-Image /StartComponentCleanup
sfc /scannow
Disable Hyper-V
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
bcdedit /set hypervisorlaunchtype off
Restart the computer to apply the changes.
Re-enable Hyper-V
dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All
bcdedit /set hypervisorlaunchtype auto
Notes
The source mixes disable and enable commands. They are separated here.