Domain Property (Active Directory)

Provides access to the domain to indicate where Active Directory bind operations are to occur.

Syntax

ActiveDirectory.Domain

Access

Read/Write.

Return Type

String.

Example

To determine the bind time to the PDC master of a domain, enter:


Dim objActiveDirectory
Dim lngBindTime

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

objActiveDirectory.Domain = "missioncritical.com"
If objActiveDirectory.BindPDCMaster Then
lngBindTime = objActiveDirectory.PDCMasterBind
End If

Set objActiveDirectory = Nothing

This example determines the time required to bind to the PDC master of the missioncritical.com domain.