RefreshGlobalCatalogs Method

Resets the list of global catalogs in the forest.

Syntax

ActiveDirectory.RefreshGlobalCatalogs

Parameters

None.

Return Type

Boolean.

Example

To enumerate the global catalogs in the forest, enter:

Dim objActiveDirectory
Dim strGlobalCatalog

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")

If objActiveDirectory.RefreshGlobalCatalogs Then
strGlobalCatalog = objActiveDirectory.NextGlobalCatalog()
While NOT (strGlobalCatalog = "")
strGlobalCatalog = objActiveDirectory.NextGlobalCatalog()
Wend
End If

Set objActiveDirectory = Nothing