在Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
以管理员身份运行的powershell中运行命令时,过一会儿出现以下错误
Enable-WindowsOptionalFeature : The referenced assembly could not be found.
At line:1 char:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand
您试图在命令提示符中运行PowerShell命令。
—
Ramhound
这不能与“无法识别Enable-WindowsOptionalFeature”重复,因为此问题的确切错误消息是“找不到引用的程序集”
—
Paradise228
OptionalFeatures.exe
。