Editar

Partilhar via


Remove-WorkgroupCluster

Removes a workgroup cluster.

Syntax

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.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credentials

An array of credentials for the nodes.

Type:PSCredential[]
Position:2
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Node

An array of nodes that form the current cluster.

Type:String[]
Position:1
Default value:@()
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False