蔡cai
蔡cai
  • 发布:2025-09-25 11:20
  • 更新:2025-09-25 11:20
  • 阅读:67

【分享经验】windows11家庭版开启Hyper-V,运行到DevEco Studio前提需要

分类:uni-app

来源:https://zhuanlan.zhihu.com/p/4203312229

1、在电脑桌面创建“Hyper-V Installer.txt”文本文档

2、将下面内容粘贴到“Hyper-V Installer.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

3、将“Hyper-V Installer.txt”的文件名修改为“Hyper-V Installer.cmd”

4、右键“Hyper-V Installer.cmd”选择以管理员身份运行

5、cmd显示“是否立即重启计算机?(Y/N)”,输入“Y”重启电脑

6、重启完电脑后,打开控制面板--->程序--->启用或关闭Windows功能--->勾选“Hyper-V”---->点击“确定”按钮

0 关注 分享

要回复文章请先登录注册