Skip to content

Set-CitrixZoneUser

Citrix: Updates zone user properties

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

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

try {
	Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
	Set-BrokerZoneUser -Name $ZoneName -UserName $UserName -ErrorAction Stop
	Write-Output "Successfully updated user '$UserName' in zone '$ZoneName'."
} catch {
	Write-Error $_
	exit 1
}

The name of the zone.

The name of the user or group.

An interactive directory of PowerShell scripts.