This script will help you to enumerate all cluster resources and their possible owners on the cluster name “ClusterVirtualNode00”.


References

Get-ClusterOwnerNode

Syntax

  • InputObject
  • Cluster
  • Group
  • Resource
  • ResourceType
Detailed Description

Settings that control the possible or preferred owners affect the way the cluster responds to the failure of a resource or a resource group (a clustered service or application).

Parameters
Cluster

Specifies the name of the cluster to run this cmdlet on. If you type “-Cluster .” or omit the parameter, the cmdlet runs on the local cluster.

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute
Required? false required
Variable Length? false variableLength
Accept wildcard characters? false globbing
Accept Pipeline Input? false pipelineInput
Position? named position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
Group

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

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute
Required? false required
Variable Length? false variableLength
Accept wildcard characters? false globbing
Accept Pipeline Input? false pipelineInput
Position? named position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
InputObject

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

Default Value:

Data Type: psobject

Attributes

Name Value PSMAML Attribute
Required? false required
Variable Length? false variableLength
Accept wildcard characters? false globbing
Accept Pipeline Input? true (ByValue) pipelineInput
Position? named position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
Resource

Specifies the name of the cluster resource for which owner nodes are enumerated. [Alias: res]

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute
Required? false required
Variable Length? false variableLength
Accept wildcard characters? false globbing
Accept Pipeline Input? false pipelineInput
Position? named position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
ResourceType

Specifies the name of the cluster resource type for which owner nodes are enumerated. [Alias: restype]

Default Value:

Data Type: string

Attributes

Name Value PSMAML Attribute
Required? false required
Variable Length? false variableLength
Accept wildcard characters? false globbing
Accept Pipeline Input? false pipelineInput
Position? named position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
Input Type
  • Microsoft.FailoverClusters.PowerShell.ClusterResource
  • Microsoft.FailoverClusters.PowerShell.ClusterGroup
  • Microsoft.FailoverClusters.PowerShell.ClusterResourceType
Return Type
  • Microsoft.FailoverClusters.PowerShell.ClusterOwnerNodeList
Examples
————————– EXAMPLE 1 ————————–

Description

———–

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

————————– EXAMPLE 2 ————————–

Description

———–

This command lists the preferred owners for the clustered file server (resource group) called cluster1FS12 on the local cluster.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: