pythonwmiwindows-server-2008-r2failovercluster

How to get cluster id using WMI on Windows Server 2008 R2?


There is cluster ID property that can be retrieved with Get-Cluster | select Id in powershell command.

How to get it with WMI? Looks like MSCluster_Cluster doesn't have ID field.


Solution

  • Able to find cluster id on my own. Just in case if anyone looking for same.

    Found the cluster id in registry. HKEY_LOCAL_MACHINE\Cluster

    Key: ClusterInstanceId