Microsoft Operations Manager

GlobalCatalogSearchTime Property

The GlobalCatalogSearchTimeproperty gets the time, in milliseconds, of the last global catalog search.

[VBScript]
ActiveDirectory.GlobalCatalogSearchTime

Access

Read-only

Return Value

Long

Examples

The following example shows how to determine the time required to search the global catalog.

[VBScript] 
Function GetCatalogSearchTime()
	Dim objActiveDirectory
	Dim lngObjectCount, lngSearchTime

	lngSearchTime = -1

	Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")

	lngObjectCount =
objActiveDirectory.SearchGlobalCatalog("(objectCategory=person)")
	If (lngObjectCount >= 0) Then
		lngSearchTime = objActiveDirectory.GlobalCatalogSearchTime
	End If

	Set objActiveDirectory = Nothing

	GetCatalogSearchTime = lngSearchTime
End Function

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.