这里写window11使用Hyper-V自定义目录标题
我系统是win11家庭版,找了一个脚本,就能用Hyper-V了。
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
将以上代码写进txt文件,将文件后缀改为cmd,直接执行就可以了。
在系统搜索框Hyper-V添加改功能。