如何解决Get-NetConnectionProfile:x86 Powershell上的提供程序加载失败?

时间:2015-01-26 18:09:29

标签: powershell

如果我在64位Powershell上运行Get-NetConnectionProfile,它可以正常工作。如果我在32位Powershell上运行它,我会收到以下错误:

Get-NetConnectionProfile : Provider load failure
    + CategoryInfo          : NotSpecified: (MSFT_NetConnectionProfile:root/St
   andardCi...nnectionProfile) [Get-NetConnectionProfile], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041013,Get-NetConnectionProfile

这是在带有Powershell 4.0版的64位Windows 8.1上。

1 个答案:

答案 0 :(得分:6)

它不适用于32位shell。坦率地说,它甚至不允许你加载模块。这些命令使用核心操作系统库。由于核心o / s是64位,因此尝试加载这些库的过程也必须是64位。我希望这是有道理的。