Pages

Sunday, June 26, 2016

Enable Hyper-v feature from PowerShell

As you may probably know Hyper-v comes with Windows 10 as Windows feature and if you would like to enable the same from PowerShell then its possible. You can also enable the feature from graphical way but here I am going to mention how its possible by using PowerShell.

1. Run PowerShell as administrator

2. Type “Get-WindowsOptionalFeature -Online |where featureName -Like "*hyper*" |ft” and hit enter. It will show the current status

image
3. Type “enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All –Verbose” and hit enter. Enter “Y” when prompted
image

4. Enter “Get-WindowsOptionalFeature -Online |where featureName -Like "*hyper*" |ft” gain to see the status, it should show all enabled
image

Enjoy the Hyper-v feature Smile