Editar

Compartir a través de


Remove-RemoteAccessLoadBalancerNode

Removes a server from the network load balancing (NLB) cluster.

Syntax

Remove-RemoteAccessLoadBalancerNode
      [-RemoteAccessServer] <String>
      [-ComputerName <String>]
      [-PassThru]
      [-Force]
      [-CimSession <CimSession[]>]
      [-ThrottleLimit <Int32>]
      [-AsJob]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-RemoteAccessLoadBalancerNode cmdlet removes a server from the network load balancing (NLB) cluster.

When a server is removed, DirectAccess (DA) and VPN configuration settings on it are also removed.

When the last server from a cluster is removed, the DA and VPN configuration on it is not removed.

A server can be removed from the NLB cluster even if it is not reachable.

When VPN and DA configuration are cleared the Remote Access role is not uninstalled automatically.

Examples

EXAMPLE 1

PS C:\>Remove-RemoteAccessLoadBalancerNode -RemoteAccessServer edge3.corp.contoso.com -ComputerName edge2.corp.contoso.com
Confirm
Removing server edge3 from the load balanced cluster will reduce cluster capacity and availability. Do you want to remove the server?

[Y] Yes  [N] No  [S] Suspend  [?] Help (default is ꞌYꞌ): Y

In case edge3 is not a part of the NLB cluster that contains edge2, this cmdlet returns with the following message.
PS C:\>
Remove-RemoteAccessLoadBalancerNode: Server edge3 is not a part of a remote access server cluster

This example removes a server from an NLB Node.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete.

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

-CimSession

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.

Type:CimSession[]
Aliases:Session
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ComputerName

Specifies the IPv4 orIPv6 address, or host name, of the server on which the cmdlet runs.

Type:String
Aliases:Cn
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

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

-Force

Forces the command to run without asking for user confirmation.

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

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

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

-RemoteAccessServer

Specifies the IPv4 orIPv6 address, or host name, of the server that will be removed from the NLB cluster.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ThrottleLimit

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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

Inputs

String

Outputs

String

The String consists of the following properties:

-- The address (IPv4 or IPv6) or name of the server that was removed from the cluster.