kurssy (@user43)wsl报错解决方案[当前计算机配置不支持 WSL2WslRegisterDistribution failed with error: 0x80370102] 中发帖

wsl在更新后无法启用,检查本机电脑已使用bios开启了虚拟化,但是还会提示错误如下,并且在控制面板的启用windows功能里没有相关启用hyper-v相关选项 
[PixPin_2025-01-18_18-08-08]
具体解决方案
以管理员运行终端
检测hyper-v启用状态
bcdedit /v | findstr hypervisorlaunchtype

如果显示的是off,则运行命令启用hyper-v
bcdedit /set hypervisorlaunchtype auto

附错误日志
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform ...