简体   繁体   English

如何在 Windows Server 2008 R2 上使用 WMI 获取集群 ID?

[英]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.

相关问题 Python 3.6没有名为…的模块...在Windows Server 2008 R2上 - Python 3.6 no module named … On windows Server 2008 R2 在Windows Server 2008 R2上设置RhodeCode - Setting up RhodeCode on windows server 2008 r2 如何获取SQL Server 2008 R2中从python调用的存储过程返回的值 - How to get the value returned by a stored procedure called from python in SQL server 2008 R2 如何使用MS HPC Server 2008 R2的MPI堆栈成功编译mpi4py? - How to successfully compile mpi4py using MS HPC Server 2008 R2's MPI stack? Django Apache 错误:没有名为“编码”的模块。 Windows 服务器 2008 R2 标准 - Django Apache error: No module named 'encodings'. Windows server 2008 R2 Standard 使用pyodbc与sql server 2008 r2连接,SQL Server不存在或访问被拒绝 - connect with sql server 2008 r2 using pyodbc, SQL Server does not exist or access denied 使用SQL Server Management Studio 2008 r2和adodbapi设置并连接到本地SQLEXPRESS数据库 - Set up and connect to local SQLEXPRESS database using SQL Server Management Studio 2008 r2 and adodbapi Redis崩溃Windows Server 2003 R2 - Redis Crash Windows Server 2003 R2 无法将pyODBC与SQL Server 2008 Express R2连接 - Unable to connect pyODBC with SQL Server 2008 Express R2 使用WMI获取Windows服务使用的内存 - get windows service used memory using wmi
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM