< Back
Get-PowerPlanSetting
Post
NAME Get-PowerPlanSetting
SYNOPSIS
Retrieve the caption, description, elementname, and instanceId of a specific power setting available on the
computer or all power settings by default.
SYNTAX
Get-PowerPlanSetting [[-Name] <String[]>] [<CommonParameters>]
DESCRIPTION
Make a call via cim to "root\\cimv2\\power" using the Win32_PowerSetting class to pull the information for a
specific power plan setting.
PARAMETERS
-Name <String[]>
Specify the name of the power setting to retrieve information about.
Required? false
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-PowerPlanSetting
AUTHOR : BMO
EMAIL : brandonseahorse@gmail.com
GITHUB : github.com/Bmo1992
CREATED : September 17, 2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PowerPlanSetting -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:
Caption :
Description : Specify the action that your computer takes when battery capacity reaches the low level.
ElementName : Low battery action
InstanceID : Microsoft:PowerSetting\\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
PSComputerName :
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PowerPlanSetting
Retrieves all information about all the power settings available on the computer in question.
RELATED LINKS
SYNOPSIS
Retrieve the caption, description, elementname, and instanceId of a specific power setting available on the
computer or all power settings by default.
SYNTAX
Get-PowerPlanSetting [[-Name] <String[]>] [<CommonParameters>]
DESCRIPTION
Make a call via cim to "root\\cimv2\\power" using the Win32_PowerSetting class to pull the information for a
specific power plan setting.
PARAMETERS
-Name <String[]>
Specify the name of the power setting to retrieve information about.
Required? false
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-PowerPlanSetting
AUTHOR : BMO
EMAIL : brandonseahorse@gmail.com
GITHUB : github.com/Bmo1992
CREATED : September 17, 2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PowerPlanSetting -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:
Caption :
Description : Specify the action that your computer takes when battery capacity reaches the low level.
ElementName : Low battery action
InstanceID : Microsoft:PowerSetting\\{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
PSComputerName :
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PowerPlanSetting
Retrieves all information about all the power settings available on the computer in question.
RELATED LINKS