win10家庭版开启hyper-v
作者:互联网
1新建txt文档,输入以下内容:
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
2将txt文档后缀改为.bat批处理文件:
hyperv.bat
3右键-》以管理员身份运行该批处理文件
标签:hyper,家庭版,%%,Packages,online,SystemRoot%,win10,txt 来源: https://blog.csdn.net/wp3524/article/details/121130998