New-CitrixRebootSchedule
Citrix: Creates a new reboot schedule
param(
[Parameter(Mandatory = $true)]
[string]$DesktopGroupName,
[Parameter(Mandatory = $true)]
[ValidateSet('Daily', 'Weekly')]
[string]$Frequency
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
$schedule = New-BrokerRebootSchedule -DesktopGroupName $DesktopGroupName -Frequency $Frequency -ErrorAction Stop
Write-Output $schedule
} catch {
Write-Error $_
exit 1
}The name of the desktop group.
The reboot frequency (Daily, Weekly).