Skip to content

Convert PowerSettings.ps1 to Get-CimInstance #37

Description

@forderud

Challenge:

Method invocation failed because [Microsoft.Management.Infrastructure.CimInstance] does not contain a method named
'GetRelated'.
At C:\Users\User\Desktop\PowerSettings.ps1:7 char:1
+ $settings = $powerplan.GetRelated("Win32_PowerSettingDataIndex")

Links:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions