Skip to content

Convert PowerSettings.ps1 to Get-CimInstance #37

@forderud

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:

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