1. pushd "%~dp0" 2. dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt 3. for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" 4. del hyper-v.txt 5. Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL