Created
September 21, 2022 22:54
-
-
Save richardnfag/100af89b5ee8949e184e1d39afc0576e to your computer and use it in GitHub Desktop.
Enable Hyper-V on Windows 11 Home
This file contains hidden or 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
@echo off | |
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\Microsoft-Hyper-V*.mum >List.txt | |
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del /f List.txt | |
dism /online /enable-feature /All /featurename:Microsoft-Hyper-V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment