Assuming that your default Cluster Group is still called "Cluster Group"
you need to script a bit
1) first get all resources of the "Cluster Group"
2) enumerate and query each one of them for type
3) select the one with type "Network Name"
4) get the name of the resource, then get the /priv
Another way is to look at the registry of a clustered node
1) query that clussvc.exe (cluster service) is running, once it is running
it must have loaded the cluster hive
2) look at this value HKEY_LOCAL_MACHINE\Cluster\ClusterName REG_SZ
this should be your cluster name,
or enumerate your registry to find this
HKEY_LOCAL_MACHINE\Cluster\Resources\30e05fb8-d68e-49b6-8212-883adb8c31b5\Co
reCurrentName REG_SZ
(the GUID is an example, this differs from cluster to cluster)
there is only one resource of the type "Network Name" which has a REG_SZ
CoreCurrentName
(which by the way should 100% match HKEY_LOCAL_MACHINE\Cluster\ClusterName)
and all that is your cluster name...
rgds,
Edwin.