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

27 lines
451 B
Plaintext
Raw Normal View History

2020-09-26 03:20:57 -05:00
Option Explicit
Main
Sub Main
Dim oCluster
Dim oNetInterfaces
Dim nCount
Dim e
Dim sCluster
Set oCluster = CreateObject("MSCluster.Cluster")
sCluster = InputBox( "Cluster to open?" )
oCluster.Open( sCluster )
Set oNetInterfaces = oCluster.NetInterfaces
nCount = oNetInterfaces.Count
MsgBox "Net Interfaces count is " & nCount
for e = 1 to nCount
MsgBox "Net Interface name is '" & oNetInterfaces.Item(e).Name & "'"
next
End Sub