Disable the automatic power management.
Instructions
1) Run the PS Command to be run on the Controller:
$dg = Get-BrokerDesktopGroup -name 'GROUPNAME'
Get-BrokerPowerTimeScheme -DesktopGroupUid $dg.Uid | Set-BrokerPowerTimeScheme -PoolSize (0..23 | %{ -1 } )
Description
PoolSize: Changes the requested pool size of running machines at the various hours of the day for the days covered by the time scheme. A 24-entry array of integer values is expected, where the zeroth entry of the array relates to the time period between midnight and 0:59, the first relates to 1am to 1:59 and so on, with the last array element relating to 11 PM to 11:59. The pool size array entry values are either absolute numbers of machines that should be running or are a percentage of the machines in the desktop group that should be running during the associated hour of the day. A value of -1 in the array signifies that no management of the number of running machines should be attempted during the associated hour of the day.
If fewer than 24 values are supplied, the final missing values are assumed to be -1, and if more than 24 values are supplied, only the first 24 are used.
Example:
C:\PS> Set-BrokerPowerTimeScheme -Name 'Development Weekdays' -PoolSize ( 0..23 | %{ if ($_ -lt 8 -or $_ -gt 19) { 5 } else { 20 } } )
2) Set the pool size for the power time scheme named 'Development Weekdays' to be 20 for the time between 8am to 7:59pm, and 5 for other times.
Note: - A value of -1 in the array signifies that no management of the number of running machines should be attempted during the associated hour of the day.
Reference:
https://support.citrix.com/article/CTX127254