📜  未启用所需的 Windows 功能:Hyper-V 和容器 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:20.052000             🧑  作者: Mango

代码示例1
Disable-WindowsOptionalFeature -FeatureName microsoft-hyper-v -online
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All