Enable-NlbClusterPortRule

Enable-NlbClusterPortRule

Enables a port rule on an NLB cluster or on a specific node in the cluster.

Syntax

Enable-NlbClusterPortRule [-Port] <System.Nullable`1[[System.UInt32> [-ClusterWide] [-HostName <string>] [-InterfaceName <string>] [-Ip <IPAddress>] [<CommonParameters>]


Enable-NlbClusterPortRule -InputObject <PortRule[]> [<CommonParameters>]

Detailed Description

The Enable-NlbClusterPortRule cmdlet enables a specific port rule on an NLB cluster or on a specific node in the NLB cluster.

Parameters

-ClusterWide <SwitchParameter>

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

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-HostName <string>

Specifies the name of the cluster host against which this cmdlet is run. If this parameter is omitted or if "-HostName ." is used, the local cluster is assumed. [Alias: hn]

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-InputObject <PortRule[]>

Specifies the cluster port rule to enable.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Position?

named

-InterfaceName <string>

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

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Ip <IPAddress>

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

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-Port <System.Nullable`1[[System.UInt32>

Specifies a port number within the port rule that will be enabled. The valid range is between 0 and 65535.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

1

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

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

Examples

EXAMPLE 1

C:\PS>

Enable-NlbClusterPortRule -Port 80



IPAddress State     Start     End       Protocol  Mode      Affinity  Timeout

--------- -----     -----     ---       --------  ----      --------  -------

All       Enabled   80        80        Both      Multiple  Single    0                        

Description

-----------

This command enables port rule 80 on the local cluster.

EXAMPLE 2

C:\PS>

Get-NlbClusterPortRule | Enable-NlbClusterPortRule



IPAddress State     Start     End       Protocol  Mode      Affinity  Timeout

--------- -----     -----     ---       --------  ----      --------  -------

All       Enabled   80        80        Both      Multiple  Single    0                        

Description

-----------

This command enables all port rules on the local cluster.

See Also

Reference

Add-NlbClusterPortRule
Disable-NlbClusterPortRule
Get-NlbClusterPortRule
Remove-NlbClusterPortRule
Set-NlbClusterPortRule