虽然安装了虚拟机,但是一安装就系统蓝屏,后来查了是联想家庭版win10问题,以下代码重名了为hyper-v.cmd,以管理员运行 ,并在添加删除程序中,启用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