Skip to content

New-CitrixLicenseAdministrator

Citrix: Creates a new license administrator

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

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

try {
	Import-Module Citrix.Licensing.Admin.V1 -ErrorAction Stop
	$admin = New-LicAdministrator -Name $Name -Role $Role -ErrorAction Stop
	Write-Output $admin
} catch {
	Write-Error $_
	exit 1
}

The name of the user or group.

The role to assign (e.g., Admin, ReadOnly).

An interactive directory of PowerShell scripts.