Microsoft Operations Manager

RefreshGlobalCatalogs Method

The RefreshGlobalCatalogsmethod resets the list of global catalogs in the forest.

[VBScript]
ActiveDirectory.RefreshGlobalCatalogs()

Parameters

None

Return Value

Long

Examples

The following example shows how to enumerate the global catalogs in the forest.

[VBScript] 
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

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

ActiveDirectory Object


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.