Skip to content

PowerShell··1 min read

Enable Hyper-V

Enable Hyper-V from an elevated PowerShell prompt with one line.

Enable Hyper-V

Open PowerShell as an administrator, copy paste the below line.

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

You will be prompted for a reboot if features are not already enabled. Press Y to reboot. Press N to reboot later.

For documentation on Enable-WindowsOptionalFeature see: Enable-WindowsOptionalFeature (DISM) | Microsoft Learn

Comments

Comments are GitHub Discussions, loaded on request.