Skip to content

Instantly share code, notes, and snippets.

@Ashwinning
Created June 9, 2016 00:22
Show Gist options
  • Save Ashwinning/c3e27f19e4449746f9eb365ef9b74430 to your computer and use it in GitHub Desktop.
Save Ashwinning/c3e27f19e4449746f9eb365ef9b74430 to your computer and use it in GitHub Desktop.
Powershell scripts to enable disable Hyper-V.

Open Powershell as admin

To Enable

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

To Disable

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

More info : http://www.poweronplatforms.com/enable-hyper-v/

Copy link

ghost commented Jun 15, 2023

Not Work for me !

PS C:\Windows\system32> Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All

Path :
Online : True
RestartNeeded : False

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment