Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Get-ClusterOwnerNode

Windows Server 2012 R2 and Windows 8.1

Updated: October 17, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Get-ClusterOwnerNode

Gets information about which nodes can own a resource in a failover cluster or information about the order of preference among owner nodes for a clustered role.

Syntax

Parameter Set: InputObject
Get-ClusterOwnerNode [-Cluster <String> ] [-Group <String> ] [-InputObject <PSObject> ] [-Resource <String> ] [-ResourceType <String> ] [ <CommonParameters>]




Detailed Description

The Get-ClusterOwnerNode cmdlet gets information about which nodes can own a resource in a failover cluster or information about the order of preference among owner nodes for a clustered role.

Settings that control the possible or preferred owners affect the way the cluster responds to the failure of a resource or a clustered role.

Parameters

-Cluster<String>

Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is . or it is omitted, then the cmdlet runs on the local cluster.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Group<String>

Specifies the name of the cluster group for which owner nodes are enumerated.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<PSObject>

Specifies the cluster group or cluster resource on which to enumerate owner nodes.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Resource<String>

Specifies the name of the cluster resource for which owner nodes are enumerated.


Aliases

res

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ResourceType<String>

Specifies the name of the cluster resource type for which owner nodes are enumerated.


Aliases

restype

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.FailoverClusters.PowerShell.ClusterResource
  • Microsoft.FailoverClusters.PowerShell.ClusterGroup
  • Microsoft.FailoverClusters.PowerShell.ClusterResourceType

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.FailoverClusters.PowerShell.ClusterOwnerNodeList

Examples

EXAMPLE 1

This example lists the possible owners for the cluster named Cluster Disk 1 in the local cluster.


PS C:\> Get-ClusterResource –Cluster "Cluster Disk 1" | Get-ClusterOwnerNode
ClusterObject                           OwnerNodes 
-------------                           ---------- 
Cluster Disk 1                          {node1, node2} 

EXAMPLE 2

This example lists the preferred owners for the clustered file server, or resource group, called cluster1FS12 on the local cluster.


PS C:\> Get-ClusterGroup –Group cluster1FS12 | Get-ClusterOwnerNode
ClusterObject                           OwnerNodes 
-------------                           ---------- 
cluster1FS12                            {} 

Related topics

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.