This script uses the cmdlet Get-Cluster to get all cluster resources and their dependencies

Command :


References

Get-Cluster

Syntax

  • Domain

  • Name
Detailed Description

This cmdlet can obtain a variety of configuration and state information about a failover cluster, including the following items:
– State information about whether a backup is in progress.
– State information about whether the cluster is in a forced quorum state.
– Cross-network settings that are especially relevant for multi-site clusters.

To set a common property for the cluster, use this cmdlet to get the cluster object and then set the appropriate property on that cluster object directly.

Parameters
Domain

Specifies the name of the domain to enumerate clusters in.

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
Name

Specifies the name of the cluster to get.

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? 1 position

Value Attributes

Name Value PSMAML Attribute
Required? true required
Variable Length? false variableLength
Examples
————————– EXAMPLE 1 ————————–

Description

———–

This command displays state and property information for the local cluster in the form of a list.

 

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

Description

———–

This command gets information about a cluster named cluster1.

 

————————– EXAMPLE 3 ————————–

Description

———–

This command gets information about each of the clusters in the contoso.com domain.

 

————————– EXAMPLE 4 ————————–

Description

———–

This command sets the common property CrossSubnetDelay for the local cluster to 1500. Alternatively, you can run “Get-Cluster | %{ $_.CrossSubnetDelay = 1500 }” to set that property.

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: