Bearbeiten

Freigeben über


Remove-WorkgroupCluster

Removes a workgroup cluster.

Syntax

Default (Default)

Remove-WorkgroupCluster
    [[-Node] <String[]>]
    [[-Credentials] <PSCredential[]>]
    [-Force]
    [-Confirm]
    [-WhatIf]
    [<CommonParameters>]

Description

The Remove-WorkgroupCluster cmdlet removes a workgroup cluster.

Examples

EXAMPLE 1

Remove-WorkgroupCluster -Node "Node1", "Node2" -Credentials $cred1, $cred2

This example removes the cluster from both Node1 and Node2.

If communication is lost with a node or the membership isn't complete, the cluster might not be removed and manual cleanup may be needed.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:False
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

An array of credentials for the nodes.

Parameter properties

Type:

PSCredential[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

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

-Force

Forces the command to run without asking for user confirmation.

Parameter properties

Type:SwitchParameter
Default value:False
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

-Node

An array of nodes that form the current cluster.

Parameter properties

Type:

String[]

Default value:@()
Supports wildcards:False
DontShow:False

Parameter sets

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet isn't run.

Parameter properties

Type:SwitchParameter
Default value:False
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

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.