Adding Hyper-V support to Windows 10 Home installation image...
Hyper-V support isn't normally enabled in Windows 10 Home, but the installation files are actually included in installed version.
NOTE: Hyper-V needs to be available in processor and enabled in BIOS for the Hyper-V support to work. If you are unsure, skip the line with Enable-Feature
.
To enable Hyper-V support during installation, some packages need to be added to the installation image.
md C:\install
md C:\temp
Dism /Mount-Image /ImageFile:C:\$Windows.~WS\Sources\install.wim /Name:"Windows 10 Home" /MountDir:C:\install
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >C:\temp\hyper-v.txt
for /f %%i in ('findstr /i . C:\temp\hyper-v.txt 2^>nul') do Dism /Image:"C:\install" /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
Dism /Image:"C:\install" /Enable-Feature /FeatureName:Microsoft-Hyper-V /All /LimitAccess
Dism /Unmount-Image /MountDir:C:\install /Commit