Licensing Information
The following example gets and displays licensing information for the XIA Automation Server.
- Connect to the administration web service.
# Get licensing information.
$licensing = $administration.GET_LicensingInformation();
if ($licensing.IsLicensed -eq $false)
{
"The product is not licensed.";
return;
}
# Write licensing information.
Write-Host $licensing.License.LicenseTypeDisplayName;
Write-Host "-----------------------------------------------";
Write-Host "Customer Name: $($licensing.License.CustomerName)";
Write-Host "Expiry Date: $($licensing.License.ExpiryDate)";
Write-Host "Support Expiry Date: $($licensing.License.SupportExpiryDate)";