Does anyone know of a way to identify the Cluster IP address for a Windows 2000 failover cluster programmatically, preferably using WMI I've been searching for the relevant class with WMI object browser for a couple of days now and keep running up against a brick wall. Any help would be greatly appreciated...

Help finding Cluster IP Address Via WMI
briankerri
Here's some code that might help:
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
strKeyPath = "Cluster\Resources"
objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, objKeys
For Each objSubKey in objKeys
objReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath & "\" & objSubKey, "Type", strRegValue
If strRegValue = "IP Address" Then
objReg.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath & "\" & objSubKey & "\Parameters" , "Address", strRegValue
WScript.Echo "Found MSCS Cluster IP Address " & strRegValue
End If
Next
Note that it doesn't associate IP’s to particular Cluster Groups. This code finds all IP’s configured on the Cluster.
Hope that helps, and please feel free to post back to this Forum if this solves your problem, or if you have other technical details or questions.
Thanks,
Stephen
http://blogs.msdn.com/stfisher