< Back

Get-PowerPlanSettingId

Sat Jan 18, 2020 9:30 pm

NAME Get-PowerPlanSettingId



SYNOPSIS

Retrieve the instanceId of a specific power setting available on the computer.





SYNTAX

Get-PowerPlanSettingId [-Name] <String> [<CommonParameters>]





DESCRIPTION

Make a call via cim to "root\\cimv2\\power" using the Win32_PowerSetting class to pull the ID for a specific power

plan setting.





PARAMETERS

-Name <String>

Specify the name of the power setting you'd like to retrieve the ID of. This field is required.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





NAME : Get-PowerPlanSettingId

AUTHOR : BMO

EMAIL : brandonseahorse@gmail.com

GITHUB : github.com/Bmo1992

CREATED : October 24, 2019



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PowerPlanSettingId -Name "Low battery action". By default all power plan settings will output to stdout.



Retrieves all information about the power setting named low battery action. Output should look like below:



{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}











RELATED LINKS