Facebook
From meew, 2 Weeks ago, written in Bash.
This paste is a reply to code from me - view diff
Embed
Download Paste or View Raw
Hits: 137
  1. pushd "%~dp0"
  2.  
  3. dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
  4.  
  5. for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
  6.  
  7. del hyper-v.txt
  8.  
  9. Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
  10.  
  11. pause
  12.  
  13.