Last active
May 15, 2023 09:49
-
-
Save RangHo/2b44ef2b0bc1eac92f13388587f3e2da to your computer and use it in GitHub Desktop.
Force enable Hyper-V features on Windows 10/11 Home editions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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