-
Notifications
You must be signed in to change notification settings - Fork 8
Microsoft Hyper‐V
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllNote: A restart is required after enabling Hyper-V.
Microsoft Hyper-V is a native Type-1 hypervisor built into Windows. It is used in OSDWorkspace to create and manage virtual machines for testing WinPE boot media and OS deployments.
Refer to the official Hyper-V documentation for full details.
Hyper-V requires a supported version of Windows and compatible hardware.
| Edition | Supported |
|---|---|
| Windows 11 Home | No |
| Windows 11 Pro | Yes |
| Windows 11 Enterprise | Yes |
| Windows 11 Education | Yes |
| Requirement | Details |
|---|---|
| Processor architecture | 64-bit with Second Level Address Translation (SLAT) |
| Hardware virtualization | Intel VT-x or AMD-V, enabled in BIOS/UEFI |
| RAM | 4 GB minimum (8 GB or more recommended) |
| Data Execution Prevention (DEP) | Must be supported and enabled |
To verify your system supports Hyper-V before enabling, run:
Get-ComputerInfo -Property HyperV*Run from an elevated PowerShell session:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -AllTo suppress the automatic restart prompt and reboot manually:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestartDISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V- Press
Win + R, typeoptionalfeatures, and press Enter. - Scroll down and expand Hyper-V.
- Check Hyper-V Management Tools and Hyper-V Platform.
- Click OK and restart when prompted.
The following optional feature names can be used individually with Enable-WindowsOptionalFeature or DISM:
| Feature Name | Description |
|---|---|
Microsoft-Hyper-V |
All Hyper-V components (recommended) |
Microsoft-Hyper-V-Hypervisor |
Core hypervisor engine |
Microsoft-Hyper-V-Services |
Hyper-V host services |
Microsoft-Hyper-V-Management-Clients |
Hyper-V Manager GUI (MMC snap-in) |
Microsoft-Hyper-V-Management-PowerShell |
Hyper-V PowerShell module |
Microsoft-Hyper-V-Tools-All |
All management tools |
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-VThe State property should return Enabled.
An external virtual switch allows virtual machines to access your local network and the internet. Run from an elevated PowerShell session:
# Find the physical adapter name
Get-NetAdapter | Where-Object { $_.Status -eq 'Up' } | Select-Object Name, InterfaceDescription
# Create the external switch (replace 'Ethernet' with your adapter name)
New-VMSwitch -Name 'External Switch' -NetAdapterName 'Ethernet' -AllowManagementOS $trueLaunch Hyper-V Manager from the Start Menu, or run:
virtmgmt.msc