Enable & Disable via Command Line (CLI)

<aside> 💡 Note: Use it carefully.. for some reason, it has worked many times for me, but in a day it started to throw me a BSOD (Blue Screen Of Death)

</aside>

Enable/Disable on PowerShell

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

Enable/Disable with dsim command

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

Enable/Disable Hypervisor Launch

bcdedit /set hypervisorlaunchtype auto
bcdedit /set hypervisorlaunchtype off