Create hyper-v.bat
This commit is contained in:
parent
048777a8bc
commit
ebaece58f9
6
hyper-v.bat
Normal file
6
hyper-v.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
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
|
Reference in a new issue