IAdmProductInfo

The IAdmProductInfo interface is used to retrieve information about Adaxes service.

Inheritance: IUnknown

To get the IAdmProductInfo interface, bind to the Service Settings container using the ServiceSettings alias and then get the value of the ProductInfo property.

 How
PowerShell
[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

# Connect to the Adaxes service.
$ns = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$service = $ns.GetServiceDirectly("localhost")

# Bind to the Service Settings container.
$wellknownContainerPath = $service.Backend.GetConfigurationContainerPath("ServiceSettings")
$serviceSettings = $service.OpenObject($wellknownContainerPath, $null, $null, 0)

# Get product info.
$productInfo = $serviceSettings.ProductInfo
C#
using System;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.Management;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;

class Program
{
    static void Main(string[] args)
    {
        // Connect to the Adaxes service.
        AdmNamespace ns = new AdmNamespace();
        IAdmService service = ns.GetServiceDirectly("localhost");

        // Bind to the Service Settings container.
        string wellknownContainerPath = service.Backend.GetConfigurationContainerPath(
            "ServiceSettings");
        IAdmServiceSettings serviceSettings = (IAdmServiceSettings) service.OpenObject(
            wellknownContainerPath, null, null, 0);
        
        // Get product info.
        IAdmProductInfo productInfo = serviceSettings.ProductInfo;
    }
}
  • Method

  • Description

  • CalculateUserAccounts()

  • Returns the total number of enabled and not expired user accounts in all domains managed by Adaxes.

Properties

Details

CalculateUserAccounts()

Returns the total number of enabled and not expired user accounts in all domains managed by Adaxes.

int CalculateUserAccounts()

ProductName

Gets the product name.

  • Type:
  • string
  • Access:
  • Read-only

ProductVersion

Gets the version of the Adaxes service.


LicenseInfo

Gets information about the Adaxes service license.

  • Type:
  • string
  • Access:
  • Read-only

LicenseInfoHtml

Gets information about the Adaxes service license in the HTML format.

  • Type:
  • string
  • Access:
  • Read-only

LicenseAgreement

Gets the Adaxes service license agreement.

  • Type:
  • string
  • Access:
  • Read-only

LicenseAgreementHtml

Gets the Adaxes service license agreement in the HTML format.

  • Type:
  • string
  • Access:
  • Read-only

AllowedUserAccounts

Gets the maximum number of enabled and not expired user accounts allowed by the license.

  • Type:
  • int
  • Access:
  • Read-only

Remarks

  • If the number of accounts is unlimited, the property value is -1.
  • If the number of accounts is still under processing (e.g. after service restart), the property value is -2.

UserAccountCriteria

Gets the criteria used to search user accounts for license validation.


Requirements

Minimum required version: 2023

See also