Win11完全开关WSL

首先在appwiz.cpl移除所有WSL相关功能


shut:
bcdedit /set hypervisorlaunchtype off
DISM /Online /Disable-Feature:Microsoft-Hyper-V

start:
bcdedit /set hypervisorlaunchtype auto
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

 

posted @ 2021-11-06 19:43  DXCyber409  阅读(318)  评论(0编辑  收藏  举报