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

How to resolve Get-NetConnectionProfile : Provider load failure on x86 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

这是在 64 位 Windows 8.1 和 Powershell 版本 4.0 上。

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