< Back

Get-PowerPlanId

Sat Jan 18, 2020 9:30 pm

NAME Get-PowerPlanId



SYNOPSIS

Get the ID of the of one of the powerplans on the computer.





SYNTAX

Get-PowerPlanId [-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-PowerPlanId

AUTHOR : BMO

EMAIL : brandonseahorse@gmail.com

GITHUB : github.com/Bmo1992

CREATED : October 23, 2019



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



PS C:\\>Get-PowerPlanId -Active:$True



Returns the information of the active power plan.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PowerPlanId -Active:$False



Returns the information of the non-active power plan.











RELATED LINKS