Skip to content

IAdmManagedDomainLyncOps

The IAdmManagedDomainLyncOps interface provides information about Skype for Business Registrar pools available in the managed domain.

Inheritance: The IAdmManagedDomainLyncOps interface inherits from the IUnknown interface.

Methods

Details

FindAvailableLyncPools()

Returns an array of Skype for Business Registrar pools available in the managed domain.

IAdmLyncPoolInfo[] FindAvailableLyncPools()

Examples

The following code sample outputs Skype for Business Registrar pools available in a managed domain.

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

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

# Bind to the managed domain
$domainName = "example.com"
$managedDomainsPath = $admService.Backend.GetConfigurationContainerPath("ManagedDomains")
$managedDomainsPathObj = New-Object "Softerra.Adaxes.Adsi.AdsPath" $managedDomainsPath
$managedDomainPath = $managedDomainsPathObj.CreateChildPath("DC=$domainName")
$managedDomain = $admService.OpenObject($managedDomainPath, $NULL, $NULL, 0)

# Retrieve registrar pools
$registrarPools = $managedDomain.FindAvailableLyncPools()
Write-Host "Registrar pools:"
foreach ($registrarPool in $registrarPools)
{
    Write-Host "`t" $registrarPool.DisplayName
}
using System;
using Softerra.Adaxes.Adsi;
using Softerra.Adaxes.Interop.Adsi.PersistentObjects;

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

        // Bind to the domain
        const String domainName = "example.com";
        string managedDomainsPath = admService.Backend.GetConfigurationContainerPath(
            "ManagedDomains");
        AdsPath managedDomainsPathObj = new AdsPath(managedDomainsPath);
        AdsPath managedDomainPath = managedDomainsPathObj.CreateChildPath("DC=" + domainName);
        IAdmManagedDomainLyncOps managedDomain = (IAdmManagedDomainLyncOps)admService.OpenObject(
            managedDomainPath.ToString(), null, null, 0);

        // Retrieve registrar pools
        IAdmLyncPoolInfo[] registrarPools = managedDomain.FindAvailableLyncPools();
        Console.WriteLine("Registrar pools:");
        foreach (IAdmLyncPoolInfo registrarPool in registrarPools)
        {
            Console.WriteLine("\t" + registrarPool.DisplayName);
        }
    }
}

Requirements

Minimum required version: 2018.1

See also