Edit

Share via


Repair-ClusterNameAccount

Repairs the Cluster Name Account and ensures that the cluster continues to function properly.

Syntax

InputObject (Default)

Repair-ClusterNameAccount
    [-Credentials <PSCredential>]
    [-Domain <String>]
    [-InputObject <PSObject>]
    [-Cluster <String>]
    [<CommonParameters>]

Credentials

Repair-ClusterNameAccount
    [-Credentials <PSCredential>]
    [-Domain <String>]
    [-Cluster <String>]
    [<CommonParameters>]

Description

The Repair-ClusterNameAccount cmdlet repairs or updates the Cluster Name Account used for authentication and authorization on a Failover Cluster. The Cluster Name Account is used to create Highly Available applications or Virtual Computer Objects (VCOs) in the cluster.

To learn more about cluster accounts in domain environments, see Configuring cluster accounts in Active Directory.

Examples

Example 1

Repair-ClusterNameAccount -Cluster "Cluster01"

This example repairs or updates the Cluster Name Account for the cluster named Cluster01.

Example 2

$cred = Get-Credential
Repair-ClusterNameAccount -Cluster "Cluster01" -Credentials $cred -Domain "contoso.com"

This example repairs or updates the Cluster Name Account for the cluster named Cluster01 using the specified credentials and domain. The Get-Credential cmdlet is used to create a PSCredential object for the -Credentials parameter.

Parameters

-Cluster

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credentials

Specifies the credentials that this cmdlet uses when it connects to Active Directory Domain Services.

Parameter properties

Type:PSCredential
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Domain

Specifies the name of the domain in which to repair the cluster name account. This should be the fully qualified domain name (FQDN) of the domain that the cluster is in.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

Specifies the cluster name account to repair.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

InputObject
Position:Named
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

PSObject

Outputs

Object