Remove-NlbCluster

Deletes a Network Load Balancing (NLB) cluster.

Syntax

Remove-NlbCluster
      [-PassThru]
      [[-HostName] <String>]
      [[-InterfaceName] <String>]
      [-Force]
      [<CommonParameters>]
Remove-NlbCluster
      -InputObject <Cluster[]>
      [-PassThru]
      [[-HostName] <String>]
      [-Force]
      [<CommonParameters>]

Description

The Remove-NlbCluster cmdlet deletes a Network Load Balancing (NLB) cluster. When the cluster is deleted, all existing connections to the hosts in the cluster will be lost and the cluster will no longer exist.

Examples

EXAMPLE 1

PS C:\>Remove-NlbCluster

This example removes the NLB cluster after asking for user confirmation.

EXAMPLE 2

PS C:\>Remove-NlbCluster -Force

This example removes the NLB cluster without asking for user confirmation.

Parameters

-Force

Runs the cmdlet without prompting for confirmation. By default the cmdlet will ask for confirmation from the user before proceeding.

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

-HostName

Specifies the name of the cluster host against which this cmdlet is run. If this parameter is omitted or a value of . is entered, then the local cluster is assumed.

Type:String
Aliases:Host, HN, H
Position:0
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster to remove.

Type:Cluster[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-InterfaceName

Specifies the interface to which NLB is bound. This is the interface of the cluster against which this cmdlet is run.

Type:String
Aliases:Interface, IN, I
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

Sends items from the interactive window down the pipeline as input to other cmdlets. By default, this cmdlet does not generate any output.

To send items from the interactive window down the pipeline, click to select the items and then click OK. Shift-click and Ctrl-click are supported.

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

Inputs

Microsoft.NetworkLoadBalancingClusters.PowerShell.Cluster

Outputs

None or Microsoft.NetworkLoadBalancingClusters.PowerShell.Cluster