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

29 lines
580 B
Plaintext

Option Explicit
Main
Sub Main
Dim oCluster
Dim oCommonProperties
Dim nCount
Dim e
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
MsgBox "Cluster Name is " & oCluster.Name
MsgBox "Cluster Version is " & oCluster.Version.BuildNumber
Set oCommonProperties = oCluster.CommonProperties
nCount = oCommonProperties.Count
MsgBox "Common property count is " & nCount
for e = 1 to nCount
MsgBox "Property name is " & oCommonProperties.Item(e).Name
next
End Sub