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.

73 lines
1.9 KiB

  1. <HTML>
  2. <HEAD>
  3. <style>
  4. <!-- body { font-family: Verdana, Arial; font-size: 75%; }
  5. p.cluster { margin-top: 1em; margin-bottom: 0em; margin-left: 0em; }
  6. p.resource { margin-top: 1em; margin-bottom: 0em; margin-left: 5em; }
  7. p.key { margin-top: 0em; margin-bottom: 0em; margin-left: 10em; }
  8. p.info { margin-top: 0em; margin-bottom: 0em; margin-left: 15em; } -->
  9. </style>
  10. <TITLE> Cluster Resoure and Resource Type Keys</TITLE>
  11. <SCRIPT LANGUAGE="VBSCRIPT">
  12. <!--
  13. Option Explicit
  14. On Error Resume Next
  15. Dim oCluster
  16. Dim sCluster
  17. Dim oRes
  18. Dim oResType
  19. Dim oKey
  20. Dim oRegKeys
  21. Dim oCryptoKeys
  22. Dim oResources
  23. Dim oResTypes
  24. Set oCluster = CreateObject("MSCluster.Cluster")
  25. sCluster = InputBox( "Cluster to open?" )
  26. oCluster.Open( sCluster )
  27. Document.Write "<B><p class=cluster>Cluster name is " & oCluster.Name & "</B><BR>"
  28. set oResources = oCluster.Resources
  29. for each oRes in oResources
  30. Document.Write "<p class=resource>Resource name is " & oRes.Name & "<BR>"
  31. set oRegKeys = oRes.RegistryKeys
  32. for each oKey in oRegKeys
  33. Document.Write "<p class=key>Registry key is " & oKey & "<BR>"
  34. next
  35. set oCryptoKeys = oRes.CryptoKeys
  36. for each oKey in oCryptoKeys
  37. Document.Write "<p class=key>Crypto key is " & oKey & "<BR>"
  38. next
  39. next
  40. set oResTypes = oCluster.ResourceTypes
  41. for each oResType in oResTypes
  42. Document.Write "<p class=resource>Resource type name is " & oResType.Name & "<BR>"
  43. set oRegKeys = oResType.RegistryKeys
  44. for each oKey in oRegKeys
  45. Document.Write "<p class=key>Registry key is " & oKey & "<BR>"
  46. next
  47. set oCryptoKeys = oResType.CryptoKeys
  48. for each oKey in oCryptoKeys
  49. Document.Write "<p class=key>Crypto key is " & oKey & "<BR>"
  50. next
  51. next
  52. -->
  53. </SCRIPT>
  54. </HEAD>
  55. <BODY>
  56. </BODY>
  57. </HTML>