Set-CitrixRebootSchedule
Citrix: Updates a reboot schedule
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[bool]$Enabled
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
Set-BrokerRebootSchedule -Name $Name -Enabled $Enabled -ErrorAction Stop
Write-Output "Successfully updated reboot schedule '$Name'."
} catch {
Write-Error $_
exit 1
}The name of the reboot schedule.
Whether the reboot schedule is enabled.