Microsoft Operations Manager |
The RefreshDomainControllersmethod resets the list of domain controllers in the forest.
[VBScript]
ActiveDirectory.RefreshDomainControllers()
None
Long
The following example shows how to enumerate the domain controllers in the forest.
[VBScript]
Dim objActiveDirectory
Dim strDomainController
Set objActiveDirectory =
CreateObject("McActiveDir.ActiveDirectory")
If (objActiveDirectory.RefreshDomainControllers()) Then
strDomainController = objActiveDirectory.NextDomainController()
While NOT(strDomainController = "")
strDomainController =
objActiveDirectory.NextDomainController()
Wend
End If
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.