【问题标题】:How to get cluster id using WMI on Windows Server 2008 R2?如何在 Windows Server 2008 R2 上使用 WMI 获取集群 ID?
【发布时间】:2023-03-16 21:23:01
【问题描述】:

有集群 ID 属性可以在 powershell 命令中使用Get-Cluster | select Id 检索。

如何通过 WMI 获得它?看起来 MSCluster_Cluster 没有 ID 字段。

【问题讨论】:

    标签: python wmi windows-server-2008-r2 failovercluster


    【解决方案1】:

    能够自己找到集群 ID。以防万一有人在寻找相同的东西。

    在注册表中找到集群 ID。 HKEY_LOCAL_MACHINE\Cluster

    密钥:ClusterInstanceId

    【讨论】:

      【解决方案2】:

      您也可以使用 ROOT\MSCluster:MSCluster_ClusterService.ElementName 通过 WMI 获取此信息。 https://docs.microsoft.com/en-us/previous-versions/windows/desktop/cluswmiext/mscluster-clusterservice

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-12-21
        • 1970-01-01
        • 2012-02-26
        • 2012-06-05
        • 1970-01-01
        相关资源
        最近更新 更多