Hyper创建虚拟机

Hyper创建虚拟机

安装Hyper

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

安装虚拟机

参考地址 https://blog.csdn.net/fengdong1996/article/details/95041109

posted @ 2023-03-13 16:45  tianliang7  阅读(30)  评论(0)    收藏  举报