IDesignatedBDC Property: UseDesignatedBDCs

Property Name
UseDesignatedBDCs

Property Type
Boolean

Description
Gets and sets the flag used to decide whether backup domain controllers (BDCs) are to be used or not for the specified domain.

USE_BDC Value

Meaning

TRUE

Use the BDCs from the list of designated BDCs instead of the Primary Domain Controller (PDC)

FALSE

Use the PDC and ignore the list of designated BDCs, if any

Example

Dim DBDCObj As IDesignatedBDC
Set DBDCObj = GetObject("NTDS:")
'Set some BDC here for "DomainName"
DBDCObj.SetDesignatedBDCsForDomain DomainName, BDCName
'Set the flag to true for the domain "DomainName".
DBDCObj.UseDesignatedBDCs("DomainName") = True

 

See Also: