Skip to content

New-CitrixZoneUser

Citrix: Adds a user to a zone

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

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

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	$user = Add-BrokerZoneUser -Name $ZoneName -UserName $UserName -ErrorAction Stop
	Write-Output $user
} catch {
	Write-Error $_
	exit 1
}

The name of the zone.

The name of the user or group to add.

An interactive directory of PowerShell scripts.