Search code examples
powershell

How to resolve Get-NetConnectionProfile : Provider load failure on x86 Powershell?


If I run Get-NetConnectionProfile on 64-bit Powershell it works fine. If I run it on 32-bit Powershell I get the following error:

Get-NetConnectionProfile : Provider load failure
    + CategoryInfo          : NotSpecified: (MSFT_NetConnectionProfile:root/St
   andardCi...nnectionProfile) [Get-NetConnectionProfile], CimException
    + FullyQualifiedErrorId : HRESULT 0x80041013,Get-NetConnectionProfile

This is on 64-bit Windows 8.1 with Powershell version 4.0.


Solution

  • It's not meant to work on the 32bit shell. Frankly, it shouldn't even allow you to load the module. These commands use core operating system libraries. Since the core o/s is 64bit, the process trying to load these libraries must also be 64 bit. I hope this makes sense.