Skip to content

Instantly share code, notes, and snippets.

@andrejsharapov
Last active January 23, 2023 07:17
Show Gist options
  • Save andrejsharapov/f667435b33b46c7b8cd555cb9daf87d1 to your computer and use it in GitHub Desktop.
Save andrejsharapov/f667435b33b46c7b8cd555cb9daf87d1 to your computer and use it in GitHub Desktop.
Enable Hyper-V for Windows 10 Home

Hyper-V for Windows 10 Home

  • Win+R -> systeminfo
  • Win+R -> notepad
  • Add code:
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
pause
  • Save as hyper-v.bat
  • Run as administrator
  • Search hyper-v manager or Win+R -> optionalfeatures.exe and Check Hyper-V
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
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment