How to configure power management with PowerShell to set the entire day as peak hours

How to configure power management with PowerShell to set the entire day as peak hours

book

Article ID: CTX549898

calendar_today

Updated On:

Description

For delivery groups with static VDAs we may not be able to configure power management in Studio, in this scenario, we can use PowerShell to manage the power settings.
PowerShell command:
Set-BrokerPowerTimeScheme

For example, if customer wants to the entire day as peak hours, we can use parameter -PeakHours followed by 24 $true.
Set-BrokerPowerTimeScheme -Name "DeliveryGroupName_Weekdays" -PeakHours $true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true
Set-BrokerPowerTimeScheme -Name "DeliveryGroupName_Weekend" -PeakHours $true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true,$true
image.png

For more detailed use of "Set-BrokerPowerTimeScheme" please refer to:
https://developer-docs.citrix.com/projects/citrix-virtual-apps-desktops-sdk/en/latest/Broker/Set-BrokerPowerTimeScheme/

Additional Information

https://developer-docs.citrix.com/projects/citrix-virtual-apps-desktops-sdk/en/latest/Broker/Set-BrokerPowerTimeScheme/