Wednesday 3 July 2013

Citrix XenDesktop show peak hours from CLI Powershell

The GUI for setting peak hours is a little wobbly with the slider bars.
If you want to see the power schedule with a PS command use the following

$WeeklyPeakHours = Get-BrokerPowerTimeScheme -name "DesktopGroup_Weekdays"

or

$WeekendPeakHours = Get-BrokerPowerTimeScheme -name "DesktopGroup_Weekend"

Then the following commands will show a display of the hours

$WeeklyPeakhours.PeakHours
$WeekendPeakHours.Peakhours

The Output is in the format of the hours and either a true or false value as to if it set as a peak hour.

eg.

FALSE
FALSE
FALSE
FALSE
TRUE
TRUE

No comments:

Post a Comment