Hyper-V
Property
Value
Overview
Why OSDeploy Uses Hyper-V
Enable with OSDeploy
Enable Manually
Related
Last updated
Was this helpful?
Hyper-V is a Windows optional feature that enables virtual machine creation on the build machine. OSDeploy uses it to test WinPE boot images locally without physical hardware.
Publisher
Microsoft
Feature name
Microsoft-Hyper-V-All
Architecture
amd64 / arm64
Platform
Windows 11
Required by
New-OSDeployHyperVM
Hyper-V is included in Windows 11 Pro, Enterprise, and Education editions but is not enabled by default. Enabling it allows New-OSDeployHyperVM to create a virtual machine that boots from a WinPE image built by OSDeploy, making it possible to validate boot images and test OSDCloud deployments entirely on the build machine. A system restart is required after enabling Hyper-V before it is operational.
New-OSDeployHyperVM creates a test VM that boots from a WinPE boot image built by OSDeploy
Enables local validation of boot images before deploying to physical devices
Eliminates the need for physical test hardware during development and testing
Required only for VM-based testing — not needed for boot image creation or OSDCloud deployments
A system restart is required after enabling Hyper-V before virtual machines can be created or started. Save all work and plan for a restart before enabling.
The OSDeploy module enables the Hyper-V Windows optional feature using Enable-WindowsOptionalFeature. Administrator rights are required.
Preview (no changes made):
Enable Hyper-V:
-DownloadOnly is not supported for feature-based components. -Force is required to make any change.
Enable Hyper-V from PowerShell or via the Windows Features dialog.
PowerShell (requires Administrator):
Windows Features dialog:
Open Control Panel → Programs → Turn Windows features on or off.
Expand Hyper-V and ensure all sub-items are checked.
Click OK and restart when prompted.
Last updated
Was this helpful?
Was this helpful?
Install-OSDeploySoftware -Name 'hyperv'Install-OSDeploySoftware -Name 'hyperv' -ForceEnable-WindowsOptionalFeature -Online -FeatureName 'Microsoft-Hyper-V-All' -All -NoRestart
