Skip to content

Instantly share code, notes, and snippets.

@n-mam
Last active April 12, 2021 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n-mam/3d8a999693c4b91496630d36d9e83652 to your computer and use it in GitHub Desktop.
Save n-mam/3d8a999693c4b91496630d36d9e83652 to your computer and use it in GitHub Desktop.
Enable Hyper-V on Windows 10 Home
REM By default client Hyper-V is available only on Windows-pro SKU. The below bat script enables Hyper-V on Windows Home
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-All /LimitAccess /ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment