IAdmDomain
The IAdmDomain interface extends the IADsDomain interface.
Inheritance: IADsDomain
Methods
-
Method
-
Description
-
CanRaiseFunctionalLevel()
-
Determines whether the functional level of the Active Directory domain can be raised.
-
FindDomainControllersNtdsDsaObjects()
-
Finds DSA objects of domain controllers.
-
GetFsmoRoleObject()
-
Returns a directory object that represents the owner of the specified FSMO role.
Properties
-
Property
-
Description
-
DomainFunctionalLevel
-
Gets or sets the domain functional level.
-
ForestCrossRefContainer
-
Gets the crossRefContainer object for the forest of the domain.
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 toADM_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.
- Type:
- ADM_DOMAIN_FUNCTIONAL_LEVEL_ENUM
- Access:
- Read/Write
ForestCrossRefContainer
Gets the crossRefContainer object for the forest of the domain.
- Type:
- IAdmCrossRefContainer
- Access:
- Read-only
Requirements
Minimum required version: 2009.1