How can I get the active cluster node via PowerShell?

EnterpriseArchitect 6,041 Reputation points
2023-07-21T12:52:52.6633333+00:00

Using the Powershell module https://learn.microsoft.com/en-us/powershell/module/failoverclusters/?view=windowsserver2022-ps

How can I get the active node name or server name?

Get-Cluster -Domain domain.name.local | Get-ClusterNode | Format-List -Property * 
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Server | Storage high availability | Clustering and high availability
Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 47,901 Reputation points
    2023-07-21T18:32:39.2966667+00:00

    Find which machine owns the resources:

    Get-Cluster <ClusterManagementName> | Get-ClusterGroup | Format-Table Name,OwnerNode
    
    OR
    
    Get-Cluster <ClusterManagementName> | Get-ClusterResource | Format-Table Cluster,Name,RecourceType,OwnerGroup,OwnerNode
    

    https://stackoverflow.com/questions/67232249/how-to-get-information-of-cluster-nodes-with-powershell

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.