< Back

Set-PowerPlanPercentSetting

Sat Jan 18, 2020 9:31 pm

NAME Set-PowerPlanPercentSetting



SYNOPSIS

Set the percentage, between 1 and 100, of a power setting that uses a percentage as it's value. (EX: the "Critical

Battery Level")

Setting requires a value starting with 1 and up to 100.





SYNTAX

Set-PowerPlanPercentSetting [-PowerSettingPercent] <String> [[-SettingObject] <Object>] [<CommonParameters>]





DESCRIPTION

Set the percentage, between 1 and 100, of a power setting that uses a percentage as it's value. (EX: the "Critical

Battery Level")

Setting requires a value starting with 1 and up to 100.





PARAMETERS

-PowerSettingPercent <String>

Specify the specific percent (between 1 and 100) that you'd like to set the power setting to.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SettingObject <Object>

Specify the power setting object. This can be passed to it directly with Get-PowerPlanSettingValue or by

storing

the output object of Get-PowerPlanSettingValue in a variable.



Required? false

Position? 2

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 : Set-PowerPlanPercentSetting

AUTHOR : BMO

EMAIL : brandonseahorse@gmail.com

GITHUB : github.com/Bmo1992

CREATED : October 30, 2019



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



PS C:\\>Set-PowerPlanPercentSetting -SettingObject $(Get-PowerPlanSettingValue -InputPowerPlanId $(Get-PowerPlanId

-Active:$True) `



-InputPowerPlanSettingId $(Get-PowerPlanSettingId -Name "Critical battery level")) -PowerSettingPercent 5



Sets the critical battery level percentage to 5%.











RELATED LINKS