Microsoft Operations Manager |
The BindLostFoundContainermethod binds to the lost and found container to determine the amount of time required for binding.
[VBScript]
ActiveDirectory.BindLostFoundContainer()
None
Long
To get the lost and found container object, use the BindObjectmethod.
The following example binds to the lost and found container and determines the number of objects in the container.
[VBScript]
Function GetLostItemsCount()
Dim objActiveDirectory
Dim lngCount
lngCount = -1
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
If (objActiveDirectory.BindLostFoundContainer()) Then
lngCount = objActiveDirectory.LostAndFoundCount
End If
Set objActiveDirectory = Nothing
GetLostItemsCount = lngCount
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0
ActiveDirectory Object, ActiveDirectory.BindObject Method
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.