win11(家庭版)启动Hyper-V

1、在“启用或关闭Windows功能”中找不到hyper-v

2、安装:参考链接

1)方式1(验证ok):

(1)新建一个hyper-v.bat,以管理员身份执行

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
pause

2)

2.参考微软官网下载的Hyper-V的方式:

Redirecting

https://learn.microsoft.com/zh-cn/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v

具体的命令如下:

以管理员的cmd运行

网址一

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

网址二

bcdedit /set hypervisorlaunchtype auto
DISM.exe /Online /Cleanup-image /Scanhealth
DISM.exe /Online /Cleanup-image /Checkhealth
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannow

 

posted @ 2024-01-30 11:18  kuaqi  阅读(1114)  评论(0编辑  收藏  举报