windows-nt/Source/XPSP1/NT/base/cluster/admin/msclus/vbscript/clusternames.vbs
2020-09-26 16:20:57 +08:00

23 lines
350 B
Plaintext

Option Explicit
Main
Sub Main
Dim oClusters
Dim oClusApp
Dim nCount
Dim e
Set oClusApp = CreateObject("MSCluster.ClusApplication")
Set oClusters = oClusApp.ClusterNames("NTDEV")
nCount = oClusters.Count
MsgBox "NTDEV Domain cluster count is " & nCount
for e = 1 to nCount
MsgBox "Cluster name is " & oClusters.Item(e)
next
End Sub