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。
非常奇怪的是,这个模块在32位Powershell中加载,然后开始... – Schneider 2015-01-26 18:22:35
那么,控制加载模块的清单并未指定模块的位数。但是如果你仔细想想,模块不会提前知道o/s的位数,所以设置这可能是一个问题。 – x0n 2015-01-26 18:24:35