Advertisement
Ambrotus

Untitled

Mar 21st, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Running the following *.bat script as Admin that will install the Hyper-V components (reboot required):
  2. pushd "%~dp0"
  3. dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
  4. for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
  5. del hyper-v.txt
  6. Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
  7. pause
  8.  
  9. Containers features:
  10. pushd "%~dp0"
  11. dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
  12. for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
  13. del containers.txt
  14. Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
  15. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement