Microsoft Operations Manager

BindRIDMaster Method

The BindRIDMastermethod binds to the relative identifier (RID) master to determine the amount of time required for binding.

[VBScript]
ActiveDirectory.BindRIDMaster()

Parameters

None

Return Value

Long

Remarks

To get the RID master object, use the BindObjectmethod.

Examples

The following example shows how to get the time required to bind to the RID master.

[VBScript] 
Function GetTimeToBindToRIDMaster()
	Dim objActiveDirectory
	Dim lngBindTime

	lngBindTime = -1

	Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")

	If (objActiveDirectory.BindRIDMaster()) Then
		lngBindTime = objActiveDirectory.RIDMasterBind
	End If

	Set objActiveDirectory = Nothing

	GetTimeToBindToRIDMaster = lngBindTime
End Function

Requirements

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

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.