Microsoft Operations Manager |
The Serverproperty gets or sets the domain controller where Active Directory bind operations are to occur.
[VBScript] ActiveDirectory.Server
Read/Write
String
You can set either the Serverproperty or the Domainproperty, but you should not set both. If both properties are assigned values, the Serverproperty takes precedence.
The following example shows how to determine the bind time to the PDC master of a specific domain controller.
[VBScript]
Dim objActiveDirectory
Dim lngBindTime
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
objActiveDirectory.Server = "Server1"
If (objActiveDirectory.BindPDCMaster()) Then
lngBindTime = objActiveDirectory.PDCMasterBind
End If
Set objActiveDirectory = Nothing
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
ActiveDirectory Object, ActiveDirectory.Domain Property
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.