Skip to content

Instantly share code, notes, and snippets.

@RangHo
Last active May 15, 2023 09:49
Show Gist options
  • Save RangHo/2b44ef2b0bc1eac92f13388587f3e2da to your computer and use it in GitHub Desktop.
Save RangHo/2b44ef2b0bc1eac92f13388587f3e2da to your computer and use it in GitHub Desktop.
Force enable Hyper-V features on Windows 10/11 Home editions.
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /Online /NoRestart /Add-Package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V /LimitAccess /All
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment