In addition to the Windows Server platform, desktop versions of Windows also include the Hyper-V virtualization platform. This feature allows users to create and manage virtual machines using the built-in Hyper-V hypervisor. This article offers guidance on how to activate the Hyper-V feature on Windows 10 and 11.
The Hyper-V virtualization capability can be activated on the Pro and Enterprise editions of Windows 10 and 11. Initially, verify that your computer’s hardware supports Hyper-V virtualization. To do this, open a command prompt with administrative permissions and enter:
systeminfo
Scroll down to the bottom of the output and check that the following components are enabled under Hyper-V Requirements:
VM Monitor Mode Extensions: YesVirtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
If it says Virtualization Enabled in Firmware: No
, enable hardware virtualization support in your computer’s BIOS/UEFI settings (it may be called Intel VT-X or AMD-V).
Then go to the CPU tab in the Task Manager and check the processor compatibility: Virtualization: Enabled
should be specified here.
If the Hyper-V components are already installed, you will see the message:
A hypervisor has been detected. Features required for Hyper-V will not be displayed.
On Windows 10 and 11, the Windows Features applet in the Control Panel can be used to enable the Hyper-V role. Run the optionalfeatures
command and select the Hyper-V Platform and Management Tools features to install.
Alternatively, enable the Hyper-V feature from the PowerShell command prompt:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Or with DISM:
dism.exe /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V-All
Restart the computer after the features are installed. Check that hypervisor features are enabled:
Get-WindowsOptionalFeature -Online -FeatureName *hyper*|ft
Enable Hyper-V to start automatically:
bcdedit /set HypervisorLaunchType auto
The Hyper-V Manager GUI tool can be utilized to oversee Hyper-V and virtual machines (virtmgmt.msc
).
Alternatively, PowerShell can be employed to manage Hyper-V and VMs.
The Hyper-V feature is not available in the Home editions of Windows 10 and 11. Nevertheless, a clever technique exists to install the Hyper-V role even on Home editions of Windows, utilizing the WinSxS component store.
Create a batch file called enable-hyperv.bat on the desktop with the following commands:
pushd "%~dp0"
dir /b %SystemRoot%servicingPackages*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause
Execute the BAT file as an administrator for the changes to take effect.
Once the components are installed, restart the computer. Check that the Hyper-V virtualization feature is now available in the Windows Home.