Microsoft Operations Manager

BindObject Method

The BindObjectmethod binds to the specified ActiveDirectoryobject.

[VBScript]
ActiveDirectory.BindObject(ADsPath String)

Parameters

ADsPath
Specifies the ADs path of the object to bind to in the form of a Lightweight Directory Access Protocol (LDAP) query.

Return Value

Object

Remarks

The BindCount, BindLast, and BindTotalproperties are updated when this method is called.

Examples

The following example binds to the rootDSEobject of the domain.

[VBScript] 
Function GetRootDSE()
	Dim objActiveDirectory, objRootDSE

	Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
	Set objRootDSE =
objActiveDirectory.BindObject("LDAP://rootDSE")

	Set objActiveDirectory = Nothing

	Set GetRootDSE = objRootDSE
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.