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
375 B

  1. Option Explicit
  2. On Error Resume Next
  3. Main
  4. Sub Main
  5. Dim sDomain
  6. Dim oClusApp
  7. Dim sCluster
  8. Set oClusApp = CreateObject("MSCluster.ClusApplication")
  9. for each sDomain in oClusApp.DomainNames
  10. MsgBox "Domain name is " & sDomain
  11. for each sCluster in oClusApp.ClusterNames( sDomain )
  12. MsgBox "Cluster name is " & sCluster
  13. next
  14. next
  15. End Sub