Microsoft Operations Manager |
The DomainNamingMasterBindproperty gets the time required to bind to the domain-naming master using the BindDomainNamingMastermethod.
[VBScript]
ActiveDirectory.DomainNamingMasterBind
Read-only
Long
The following example shows how to get the time required to bind to the domain naming master.
[VBScript]
Function GetTimeToBindToDNMaster()
Dim objActiveDirectory
Dim lngBindTime
lngBindTime = -1
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
If (objActiveDirectory.BindDomainNamingMaster()) Then
lngBindTime = objActiveDirectory.DomainNamingMasterBind
End If
Set objActiveDirectory = Nothing
GetTimeToBindToDNMaster = lngBindTime
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
ActiveDirectory Object, ActiveDirectory.BindDomainNamingMaster Method
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.