Adron
2/4/2019 - 5:21 PM

Disabling/Enabling Hyper-V via Powershell ("Run As Administrator")

Disabling/Enabling Hyper-V via Powershell ("Run As Administrator")

# Remember, all of these commands need executed via Powershell that is started/opened with "Run As Administrator".

# Disabling Hyper-V

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

# Enabling Hyper-V

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

# You may also want DSIM enabled with all this, here's that detail.

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V