external help file | Module Name | online version | schema |
---|---|---|---|
UnifiedRA_Cmdlets.xml |
RemoteAccess |
2.0.0 |
Removes a server from the network load balancing (NLB) cluster.
Remove-RemoteAccessLoadBalancerNode [-RemoteAccessServer] <String> [-AsJob] [-CimSession <CimSession[]>]
[-ComputerName <String>] [-Force] [-PassThru] [-ThrottleLimit <Int32>] [-Confirm] [-WhatIf]
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.
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.
ps_cimcommon_asjob
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227967 or Get-CimSessionhttp://go.microsoft.com/fwlink/p/?LinkId=227966 cmdlet. The default is the current session on the local computer.
Type: CimSession[]
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the IPv4 orIPv6 address, or host name, of the server on which the cmdlet runs.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Forces the command to run without asking for user confirmation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the IPv4 orIPv6 address, or host name, of the server that will be removed from the NLB cluster.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
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
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The String consists of the following properties:
-- The address (IPv4 or IPv6) or name of the server that was removed from the cluster.