New-CitrixDesktopEntitlementPolicyRule
Citrix: Creates a new desktop entitlement policy rule
param(
[Parameter(Mandatory = $true)]
[string]$Name,
[Parameter(Mandatory = $true)]
[string]$DesktopGroupName
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
$rule = New-BrokerDesktopEntitlementPolicyRule -Name $Name -DesktopGroupName $DesktopGroupName -ErrorAction Stop
Write-Output $rule
} catch {
Write-Error $_
exit 1
}The name of the policy rule.
The name of the desktop group.