New-CitrixAssignmentPolicyRule
Citrix: Creates an assignment policy rule
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[int]$DesktopGroupUid
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
$rule = New-BrokerAssignmentPolicyRule -Name $Name -DesktopGroupUid $DesktopGroupUid -ErrorAction Stop
Write-Output $rule
} catch {
Write-Error $_
exit 1
}The name of the new assignment policy rule.
The UID of the desktop group to associate with the rule.