Microsoft Operations Manager |
The UserNameproperty gets or sets the user name to be used by the object for authentication.
[VBScript] ActiveDirectory.UserName
Read/Write
String
The following example shows how to specify a user to bind to a rootDSEobject of a domain.
[VBScript]
Dim objActiveDirectory, objRootDSE
Dim lngBindTime
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
objActiveDirectory.UserName = "someone"
objActiveDirectory.Password = "adiscool"
Set objRootDSE = objActiveDirectory.BindObject("LDAP://rootDSE")
lngBindTime = objActiveDirectory.BindLast
Set objRootDSE = Nothing
Set objActiveDirectory = Nothing
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.