Microsoft Operations Manager

BindLostFoundContainer Method

The BindLostFoundContainermethod binds to the lost and found container to determine the amount of time required for binding.

[VBScript]
ActiveDirectory.BindLostFoundContainer()

Parameters

None

Return Value

Long

Remarks

To get the lost and found container object, use the BindObjectmethod.

Examples

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

Requirements

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

See Also

ActiveDirectory Object, ActiveDirectory.BindObject Method


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