Enable-NlbClusterPortRule

Enable-NlbClusterPortRule

Enables a port rule on a Network Load Balancing (NLB) cluster or on a specific node in the cluster.

Syntax

Parameter Set: NonPipeline
Enable-NlbClusterPortRule [-Port] <Nullable> [-ClusterWide] [-HostName <String> ] [-InterfaceName <String> ] [-IP <IPAddress> ] [ <CommonParameters>]

Parameter Set: Pipeline
Enable-NlbClusterPortRule -InputObject <PortRule> [ <CommonParameters>]

Detailed Description

The Enable-NlbClusterPortRule cmdlet enables a specific port rule on a Network Load Balancing (NLB) cluster or on a specific node in the NLB cluster.

Parameters

-ClusterWide

Enables the given port rule on all cluster nodes. If this parameter is omitted, then the port rule is only enabled on one node.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HostName<String>

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.

Aliases

hn

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IP<IPAddress>

Specifies the IP address for the cluster port rule that will be enabled.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<PortRule>

Specifies the cluster port rule to enable.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-InterfaceName<String>

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Port<Nullable>

Specifies a port number within the port rule that will be enabled. The acceptable values for this parameter are: 0 through 65535.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Examples

EXAMPLE 1

This example enables port rule 80 on the local cluster.

PS C:\> Enable-NlbClusterPortRule -Port 80

EXAMPLE 2

This example enables all port rules on the local cluster.

PS C:\> Get-NlbClusterPortRule | Enable-NlbClusterPortRule

Add-NlbClusterPortRule

Disable-NlbClusterPortRule

Get-NlbClusterPortRule

Remove-NlbClusterPortRule

Set-NlbClusterPortRule