SHARE
TWEET

Untitled

Ambrotus Mar 21st, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top