2015-01-26 165 views
2

如果我在64位Powershell上运行Get-NetConnectionProfile,它工作正常。如果我在32位Powershell上运行它,我会收到以下错误消息:如何解决x86 PowerShell中的Get-NetConnectionProfile:Provider加载失败?

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。

回答

2

这并不意味着在32位外壳上工作。坦率地说,它甚至不应该允许你加载模块。这些命令使用核心操作系统库。由于核心操作系统是64位,所以试图加载这些库的过程也必须是64位。我希望这是有道理的。

+0

非常奇怪的是,这个模块在32位Powershell中加载,然后开始... – Schneider 2015-01-26 18:22:35

+0

那么,控制加载模块的清单并未指定模块的位数。但是如果你仔细想想,模块不会提前知道o/s的位数,所以设置这可能是一个问题。 – x0n 2015-01-26 18:24:35