Skip to content

Add-CitrixAppAssignmentPolicyRule

Citrix: Adds an application assignment policy rule

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

	[Parameter(Mandatory = $true)]
	[string]$DesktopGroupName
)

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

The name of the policy rule.

The name of the associated desktop group.

An interactive directory of PowerShell scripts.