Skip to content

Add-CitrixApplicationToGroup

Citrix: Adds an application to a group

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

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

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Add-BrokerApplication -Name $ApplicationName -ApplicationGroup $GroupName -ErrorAction Stop
	Write-Output "Successfully added application '$ApplicationName' to group '$GroupName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the application.

The name of the application group.

An interactive directory of PowerShell scripts.