< Back
Get-PowerPlan
Post
NAME Get-PowerPlan
SYNOPSIS
Get the information of an active or non active power plan.
SYNTAX
Get-PowerPlan [-Active] <Boolean> [<CommonParameters>]
DESCRIPTION
Calls to the cim instance 'root\\cimv2\\power' via the Win32_PowerPlan class to gather the ID of the systems power
plans.
PARAMETERS
-Active <Boolean>
Specify whether to choose the active or non-active power plan.
Required? true
Position? 1
Default value False
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-PowerPlan
AUTHOR : BMO
EMAIL : brandonseahorse@gmail.com
GITHUB : github.com/Bmo1992
CREATED : September 17, 2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PowerPlan -Active:$True
Returns the information of the active power plan.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PowerPlan -Active:$False
Returns the information of the non-active power plan.
RELATED LINKS
SYNOPSIS
Get the information of an active or non active power plan.
SYNTAX
Get-PowerPlan [-Active] <Boolean> [<CommonParameters>]
DESCRIPTION
Calls to the cim instance 'root\\cimv2\\power' via the Win32_PowerPlan class to gather the ID of the systems power
plans.
PARAMETERS
-Active <Boolean>
Specify whether to choose the active or non-active power plan.
Required? true
Position? 1
Default value False
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-PowerPlan
AUTHOR : BMO
EMAIL : brandonseahorse@gmail.com
GITHUB : github.com/Bmo1992
CREATED : September 17, 2019
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-PowerPlan -Active:$True
Returns the information of the active power plan.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-PowerPlan -Active:$False
Returns the information of the non-active power plan.
RELATED LINKS