locked
Win32_Powerplan Class not working in PowerShell Version 5.1.15xxx RRS feed

  • General discussion

  • OS :Windows 10 Build 15007 | Language :US

    'gwmi -class Win32_powerplan -namespace root\cimv2\power' command running in PowerShell window throughout error.

    This error only happens in PowerShell Version 5.1.15xxx but working fine in the lower version build 5.1.14xxx and below.

    gwmi : Provider load failure
    At line:1 char:1
    + gwmi -class win32_powerplan -namespace root\cimv2\power
    +---------------------------------------------------------
      + Category Info          : InvalidOperation: (:) [Get-wmiObject], ManagementException
      + FullyQualifiedErrorId  : GetWMIManagementException,Microsoft.PowerShell.commands.GetwmiobjectCommand
    Friday, February 10, 2017 4:07 AM

All replies

  • works ok for me on 5.1.15031
    Friday, February 10, 2017 7:56 PM
  • Thanks for your replay.

    i noticed these failure in the 3 build 5.1.1507 & 5.1.15019 & 5.1.15025.

    Are you got pass result in these builds???



    Tuesday, February 14, 2017 2:21 AM
  • Nope sorry did not try before this thread, not got any older builds to test on now (only 15031 and the 1670 general releases)
    Tuesday, February 14, 2017 5:45 PM