windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/vbscript/domainnames.vbs

23 lines
353 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Option Explicit
On Error Resume Next
Main
Sub Main
Dim sDomain
Dim oClusApp
Dim sCluster
Set oClusApp = CreateObject("MSCluster.ClusApplication")
for each sDomain in oClusApp.DomainNames
MsgBox "Domain name is " & sDomain
for each sCluster in oClusApp.ClusterNames( sDomain )
MsgBox "Cluster name is " & sCluster
next
next
End Sub