ENABLE AND DISABLE HYPER-V IN POWERSHELL
Open an elevated PowerShell
To Enable Hyper-V
In the elevated PowerShell window, copy and paste the command below, press Enter, and go to To Disable Hyper-V. Note, If you do not use the -All switch, then you will not install the Hyper-V GUI Management Tools and Hyper-V Module for Windows PowerShell features.
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
To Disable Hyper-V
In the elevated PowerShell window, copy and paste the command below, press Enter, and go to step 4 below.
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
Type Y and press Enter when prompted to restart the computer.