【问题标题】:How to resolve Get-NetConnectionProfile : Provider load failure on x86 Powershell?如何解决 Get-NetConnectionProfile:x86 Powershell 上的提供程序加载失败?
【发布时间】:2015-03-25 05:12:24
【问题描述】:

如果我在 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 上。

【问题讨论】:

    标签: powershell


    【解决方案1】:

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

    【讨论】:

    • 很奇怪,这个模块是在32位Powershell中加载的,然后...
    • 嗯,控制加载模块的清单没有指定模块的位数。但是仔细想想,模块并不会提前知道 o/s 的位数,所以设置这个可能是个问题。
    • 在这里找到 64 位 Powershell stackoverflow.com/questions/8588960/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-24
    • 2017-12-15
    相关资源
    最近更新 更多