Microsoft Operations Manager |
The BindPDCMastermethod binds to the primary domain controller (PDC) master to determine the amount of time required for binding.
[VBScript]
ActiveDirectory.BindPDCMaster()
None
Long
To get the PDC object, use the BindObjectmethod.
The following example shows how to get the time required to bind to the PDC master.
[VBScript]
Function GetTimeToBindToPDCMaster()
Dim objActiveDirectory
Dim lngBindTime
lngBindTime = -1
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
If (objActiveDirectory.BindPDCMaster()) Then
lngBindTime = objActiveDirectory.PDCMasterBind
End If
Set objActiveDirectory = Nothing
GetTimeToBindToPDCMaster = lngBindTime
End Function
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
ActiveDirectory Object, ActiveDirectory.BindObject Method
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.