2015-01-26 75 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