Sorry, search feature is not supported in Internet Explorer 11

Creating business units

The following code sample creates a business unit.


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

# Bind to the 'Business Units' container
$businessUnitsPath = $admService.Backend.GetConfigurationContainerPath(
$businessUnitsContainer = $admService.OpenObject($businessUnitsPath,
    $NULL, $NULL, 0)

# Create new business unit
$unit = $businessUnitsContainer.Create("adm-BusinessUnit", "CN=My Unit")
$unit.Description = "My description"

$rules = $unit.GetMembershipRules()
# [TODO] specify membership rules



For information on how to specify membership rules for a business unit, see Modifying membership rules.

See also