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

28 lines
547 B
Plaintext

Option Explicit
Main
Sub Main
Dim oCluster
Dim oVersion
Dim oClusApp
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
Set oClusApp = CreateObject("MSCluster.ClusApplication")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
'MsgBox oCluster.Name
Set oVersion = oCluster.Version
MsgBox "Cluster name is: " & oVersion.Name
MsgBox "Build number is: " & oVersion.BuildNumber
MsgBox "Cluster CSDVersion is: '" & oVersion.CSDVersion & "'"
MsgBox "Vendor id is: '" & oVersion.VendorId & "'"
End Sub