IDesignatedBDC Interface

Inherited from

IDispatch

Applies to Objects

NameSpace

This is a secondary interface of the Namespace object. You can use this interface to get and set designated Backup Domain Controllers (BDCs) for the specified domain. A designated BDC is a domain controller that be used to do certain operations, which are, by default, done on the Primary Domain Controller (PDC). Note that all operations done on a designated BDC are read only. No changes can be saved to a BDC.

Property/Method

Description

GetBDCsForDomain

Gets the list of BDCs for the specified domain

GetDesignatedBDCsForDomain

Gets the list of BDCs for the specified domain to be used for lookups and other operations

SetDesignatedBDCsForDomain

Sets the list of BDCs to be used for lookups and other operations for the specified domain

ResetDesignatedBDCsForDomain

Removes the specified domain entry and its list of BDCs

UseDesignatedBDCs

Gets and sets the flag that indicates whether to use BDCs for the specified domain or not

A typical use of the IDesignatedBDC interface can be as follows:

Dim DBDCObj As IDesignatedBDC
Set DBDCObj = GetObject("NTDS:")
'Set the BDC to be used for "DomainName"
DBDCObj.SetDesignatedBDCsForDomain "DomainName", "BDCName"

'Enable this. By default, this is false.
DBDCObj.UseDesignatedBDCs("DomainName") = True
'Do operations here which require lookup on the BDC like finding out a user's last login time, etc.
'Empty the BDC list. Lookups are now done on the PDC for "DomainName".
DBDCObj.ResetDesignatedBDCsForDomain "DomainName"