class="hljs-ln-code"> class="hljs-ln-line">dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt class="hljs-ln-numbers"> class="hljs-ln-line hljs-ln-n" data-line-number="3"> class="hljs-ln-code"> class="hljs-ln-line">for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" class="hljs-ln-numbers"> class="hljs-ln-line hljs-ln-n" data-line-number="4"> class="hljs-ln-code"> class="hljs-ln-line">del hyper-v.txt class="hljs-ln-numbers"> class="hljs-ln-line hljs-ln-n" data-line-number="5"> class="hljs-ln-code"> class="hljs-ln-line">Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL class="hljs-button signin active" data-title="登录复制" data-report-click="{"spm":"1001.2101.3001.4334"}" onclick="hljs.signin(event)">
2.用管理员身份运行该文档,如下图:

3.等待脚本执行
4.最后输入Y,进行电脑重启,如下图:

5.输入Y重启电脑后,查看控制面板-程序-启用或关闭Windows功能,可以看下Hyper-v节点已存在。
>>
评论记录:
回复评论: