Enable-NlbClusterPortRule

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

Syntax

Enable-NlbClusterPortRule
      [-ClusterWide]
      [-HostName <String>]
      [-InterfaceName <String>]
      [-IP <IPAddress>]
      [-Port] <UInt32>
      [<CommonParameters>]
Enable-NlbClusterPortRule
      -InputObject <PortRule[]>
      [<CommonParameters>]

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.

Examples

EXAMPLE 1

PS C:\>Enable-NlbClusterPortRule -Port 80
IPAddress State     Start     End       Protocol  Mode      Affinity  Timeout 
--------- -----     -----     ---       --------  ----      --------  ------- 
All       Enabled   80        80        Both      Multiple  Single    0

This example enables port rule 80 on the local cluster.

EXAMPLE 2

PS C:\>Get-NlbClusterPortRule | Enable-NlbClusterPortRule
IPAddress State     Start     End       Protocol  Mode      Affinity  Timeout 
--------- -----     -----     ---       --------  ----      --------  ------- 
All       Enabled   80        80        Both      Multiple  Single    0

This example enables all port rules on the local 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.

Type:SwitchParameter
Aliases:Cluster, C
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:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Specifies the cluster port rule to enable.

Type:PortRule[]
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:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IP

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

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

-Port

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

Type:UInt32
Aliases:P
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Outputs

Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule