Windows10 (家庭版),如何安装Hyper-v服务???

1. 查看电脑是否有Hyper-V功能?

  • 打开搜索,搜索启用或关闭Windows功能
    image
    image

2. 如果电脑不存在Hyper-V功能?

  • 打开Windows PowerShell终端,输入systeminfor,查看系统信息
    image
  • 如果最后四个要求为‘是’,则支持该功能
    image

3. 使用记事本写脚本,文件后缀修改成bat,以管理员方式运行

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

image

4. 最后重新启动电脑即可

posted @ 2022-07-24 09:38  XiaoZhi-byte  阅读(262)  评论(0编辑  收藏  举报