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

22 lines
333 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Option Explicit
Main
Sub Main
Dim oClusApp
Dim oCluster
Dim oParent
Set oClusApp = CreateObject("MSCluster.ClusApplication")
Set oCluster = oClusApp.OpenCluster("10.0.0.1")
Set oParent = oCluster.Parent
MsgBox "Parent's Name is " & oParent.Name
if oParent = oCluster then
MsgBox "Parent is Cluster."
end if
End Sub