IAdmDomain

The IAdmDomain interface extends the IADsDomain interface.

Inheritance: IADsDomain

Methods

Properties

Details

CanRaiseFunctionalLevel()

Determines whether the functional level of the Active Directory domain can be raised.

bool CanRaiseFunctionalLevel(out ADM_DOMAIN_FUNCTIONAL_LEVEL_ENUM maxLevel, 
                                out string[] notAppropriateDCs)

Parameters

  • maxLevel – an output (OUT) parameter that returns the maximum functional level of the domain.
  • notAppropriateDCs – an output (OUT) parameter that returns an array with the DNS host names of the domain controllers that do not support a higher functional level.

Remarks

If the functional level can be raised, the maxLevel parameter returns the maximum level that the current domain supports. Otherwise, the notAppropriateDCs parameter returns an array with the DNS host names of the DCs that do not support a higher functional level. If this array is empty, and the method returned false, then the domain is already at its highest functional level.


FindDomainControllersNtdsDsaObjects()

Finds the DSA objects of domain controllers.

IADsCollection FindDomainControllersNtdsDsaObjects(ADM_FIND_DC_PARAM_ENUM find)

Parameters

  • find – controls which domain controllers to search for. When set to ADM_FIND_DC_PARAM_DOMAIN, the method searches for domain controllers that belong to the current domain. When set to ADM_FIND_DC_PARAM_FOREST, the method searches for all domain controllers in the forest.

Return value

The returned IADsCollection represents a list of NTDS DSA objects.


GetFsmoRoleObject()

Returns a directory object that represents the owner of the specified FSMO role.

IAdmTop GetFsmoRoleObject(ADM_FSMO_ROLE_ENUM role)

Parameters

  • role – the FSMO role.

DomainFunctionalLevel

Gets or sets the domain functional level.


ForestCrossRefContainer

Gets the crossRefContainer object for the forest of the domain.


Requirements

Minimum required version: 2009.1

See also