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 Use code with caution. Copied to clipboard How to Use This Text
: Open Notepad and paste the code above into it. hyperv_win10.zip
The hyperv_win10.zip file is commonly associated with a script used to , as Hyper-V is natively restricted to Pro, Enterprise, and Education versions. and Education versions.