Microsoft Operations Manager |
The GlobalCatalogSearchTimeproperty gets the time, in milliseconds, of the last global catalog search.
[VBScript]
ActiveDirectory.GlobalCatalogSearchTime
Read-only
Long
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
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.