Skip to content

New-CitrixEntitlementPolicyRule

Citrix: Creates an entitlement policy rule

param(
	[Parameter(Mandatory = $true)]
	[string]$Name,

	[Parameter(Mandatory = $true)]
	[int]$DesktopGroupUid
)

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	$rule = New-BrokerEntitlementPolicyRule -Name $Name -DesktopGroupUid $DesktopGroupUid -ErrorAction Stop
	Write-Output $rule
} catch {
	Write-Error $_
	exit 1
}

The name of the new entitlement policy rule.

The UID of the desktop group to associate with the rule.

An interactive directory of PowerShell scripts.