NextGlobalCatalog Method

Gets the next global catalog in the forest.

Syntax

ActiveDirectory.NextGlobalCatalog

Parameters

None.

Return Type

String.

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