IADsDomain Property: GetDCName

Property Name
GetDCName

Property Type
String

Description
Gets the name of the Primary Domain Controller (PDC) of the domain from where the lookups are being currently done.
This property is read-only.

Remarks
The property gets the name of the computer on which the DC is present.

Example

Dim DomainObject As IADsDomain
Set DomainObject = GetObject("NTDS://YourDomainName")
Debug.Print DomainObject.GetDCName

 

See Also