PowerShell commands for enable/disable the Hyper-V

Run PowerShell as Admin and restart the PC for each command
 
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V –All
 
 
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All