Get-CitrixRebootSchedule
Citrix: Gets reboot schedules
param(
[Parameter(Mandatory = $false)]
[string]$Name
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
[hashtable]$cmdArgs = @{ 'ErrorAction' = 'Stop' }
if ($Name) { $cmdArgs.Add('Name', $Name) }
$schedules = Get-BrokerRebootSchedule @cmdArgs
Write-Output $schedules
} catch {
Write-Error $_
exit 1
}The name of the reboot schedule (optional).