Skip to content

Instantly share code, notes, and snippets.

@richardnfag
Created September 21, 2022 22:54
Show Gist options
  • Save richardnfag/100af89b5ee8949e184e1d39afc0576e to your computer and use it in GitHub Desktop.
Save richardnfag/100af89b5ee8949e184e1d39afc0576e to your computer and use it in GitHub Desktop.
Enable Hyper-V on Windows 11 Home
@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