Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
372 B

  1. Option Explicit
  2. Main
  3. Sub Main
  4. Dim oClusters
  5. Dim oClusApp
  6. Dim nCount
  7. Dim e
  8. Set oClusApp = CreateObject("MSCluster.ClusApplication")
  9. Set oClusters = oClusApp.ClusterNames("NTDEV")
  10. nCount = oClusters.Count
  11. MsgBox "NTDEV Domain cluster count is " & nCount
  12. for e = 1 to nCount
  13. MsgBox "Cluster name is " & oClusters.Item(e)
  14. next
  15. End Sub