[英]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
可以使用
Get-Cluster | select Id
检索集群 ID 属性Get-Cluster | select Id
Get-Cluster | select Id
in powershell command.在 powershell 命令中
Get-Cluster | select Id
。
How to get it with WMI?如何使用 WMI 获取它? Looks like MSCluster_Cluster doesn't have ID field.
看起来 MSCluster_Cluster 没有 ID 字段。
Able to find cluster id on my own.能够自己找到集群 ID。 Just in case if anyone looking for same.
以防万一,如果有人在寻找相同的东西。
Found the cluster id in registry.在注册表中找到集群 ID。
HKEY_LOCAL_MACHINE\\Cluster
Key: ClusterInstanceId
键:
ClusterInstanceId
You can also get this through WMI using ROOT\\MSCluster:MSCluster_ClusterService.ElementName.您还可以使用 ROOT\\MSCluster:MSCluster_ClusterService.ElementName 通过 WMI 获取此信息。 https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmiext/mscluster-clusterservice
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmiext/mscluster-clusterservice
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.