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

24 lines
353 B
Plaintext

Option Explicit
Main
Sub Main
Dim oCluster
Dim oNode
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
MsgBox oCluster.Name
MsgBox "Node count is " & oCluster.Nodes.Count
for each oNode in oCluster.Nodes
MsgBox "Node name is " & oNode.Name
next
End Sub