家庭版先安装Hyper-V
- 将如下代码添加到记事本中,并另存为Hyper-V.cmd文件。代码如下:
pushd "%~dp0"
dir /b %SystemRoot%servicingPackages*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
- 右键点击Hyper-V.cmd,以管理员身份运行;
- 重启;
参考
https://www.cnblogs.com/wyt007/p/10656813.html
http://www.win7999.com/news/332510800.html