2022-09-22 21:47 编辑:yiyi 点击: 次 A+
在windows系统中需要安装安卓子系统,需在windows功能界面中开启Hyper-V选项,而家庭版系统并没有这个选项,需要手动进行开启。

cmd
pushd "%~dp0"dir /b %SystemRoot%servicingPackages*Hyper-V*.mum >hyper-v.txtfor /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%servicingPackages%%i"del hyper-v.txtDism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL

以管理员身份运行脚本

运行脚本

windows功能界面