我正在使用IIS和Windows PowerShell,基于此this Microsoft TechNet link我应该能够使用PowerShell命令查看操作系统的所有可选功能:
PS C:\> Get-WindowsOptionalFeature –Online
当我尝试使用此命令时,收到以下错误消息:
get-windowsoptionalfeature : An attempt was made to load a program with an incorrect format.
At line:1 char:1
+ get-windowsoptionalfeature -Online
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-WindowsOptionalFeature], COMException
+ FullyQualifiedErrorId : Microsoft.Dism.Commands.GetWindowsOptionalFeatureCommand
我一直在阅读,大多数问题似乎是基于64位和32位操作系统之间的问题,我已经尝试在我的标准PowerShell和PowerShell(x86)中运行它,两者都有相同的错误。关于为什么会发生这种情况的任何想法?
答案 0 :(得分:4)