Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Enable-NlbClusterPortRule

Enable-NlbClusterPortRule

microsoft.networkloadbalancingclusters.powershell.dll

Synopsis

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

Syntax

Enable-NlbClusterPortRule [-Port] [-ClusterWide] [-HostName] [-InterfaceName] [-IP] [<CommonParameters>]

Enable-NlbClusterPortRule [-InputObject] [<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 <SwitchParameter>

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

Cluster,C

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

Host,HN,H

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

Interface,IN,I

Required?

false

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Port <UInt32>

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

Aliases

P

Required?

true

Position

1

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Return Type

Microsoft.NetworkLoadBalancingClusters.PowerShell.PortRule

Notes

None

Examples

EXAMPLE 1

This example enables port rule 80 on the local cluster.

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

EXAMPLE 2

This example enables all port rules on the local cluster.

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

Online Version
Add-NlbClusterPortRule
Disable-NlbClusterPortRule
Get-NlbClusterPortRule
Remove-NlbClusterPortRule
Set-NlbClusterPortRule