且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831

更新时间:2022-09-16 09:38:19

Hyper-V是微软的一款虚拟化技术,是微软第一个采用类似Vmware和Citrix开源Xen一样的基于hypervisor的技术。


在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831


在Windows 10的powershell命令里,输入如下的命令行:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All


遇到如下错误信息:


Enable-WindowsOptionalFeature : Enable-WindowsOptionalFeature failed. Error code = 0x800f0831


Microsoft-Hyper-V Error code = 0x800f0831


At line:1 char:1


Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V …


在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831

CategoryInfo : NotSpecified: (???? [Enable-WindowsOptionalFeature], COMException


FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand


再试试第二个命令行:


dism /online /enable-feature /featurename:microsoft-hyper-v-all /All


还是遇到错误码0x800f0831:


在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831

The DISM log file can be found at C:WINDOWSLogsDISMdism.log


解决办法是,进入Windows 10的控制面板,在Turn windows features on or off里先安装.NET Framework:


在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831

之后就能安装Hyper-V了。