Set-CitrixLicenseServer
Citrix: Sets the license server
param(
[Parameter(Mandatory = $true)]
[string]$LicenseServerAddress,
[Parameter(Mandatory = $false)]
[int]$LicenseServerPort = 27000
)
try {
Import-Module Citrix.Broker.Admin.V2 -ErrorAction Stop
Set-BrokerSite -LicenseServerAddress $LicenseServerAddress -LicenseServerPort $LicenseServerPort -ErrorAction Stop
Write-Output "Successfully updated license server to '$LicenseServerAddress'."
} catch {
Write-Error $_
exit 1
}The FQDN or IP of the license server.
The port used by the license server (default 27000).