PowerShell Logo Small

Remove-VpnConnectionRoute



This is the built-in help made by Microsoft for the command 'Remove-VpnConnectionRoute', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Removes a route from a VPN connection.

SYNTAX


Remove-VpnConnectionRoute [-ConnectionName] <String> [-DestinationPrefix] <String> [[-AllUserConnection]] [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit
<Int32>] [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-VpnConnectionRoute cmdlet removes an IPv4 or IPv6 route from a VPN connection.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=290784
Add-VpnConnectionRoute

REMARKS

<

Examples


Example 1: Remove a VPN connection route for an IPv4 address

PS C:\> Remove-VpnConnectionRoute -ConnectionName "Contoso" -DestinationPrefix 176.16.0.0/16 -PassThru
DestinationPrefix : 176.16.0.0/16

InterfaceIndex :
InterfaceAlias : Contoso

AddressFamily : IPv4

NextHop : 0.0.0.0

Publish : 0

RouteMetric : 1

PolicyStore :



This command uses the Remove-VpnConnectionRoute cmdlet to remove a route associated with an IPv4 address prefix. The command specifies the PassThru parameter to return an
object.





Example 2: Remove a VPN connection route for an IPv6 address

PS C:\>Remove-VpnConnectionRoute -ConnectionName "Contoso" -DestinationPrefix 2001:4898:7020:3020::/64 -PassThru
DestinationPrefix : 2001:4898:7020:3020::/64

InterfaceIndex :

InterfaceAlias : Contoso

AddressFamily : IPv6

NextHop : ::

Publish : 0

RouteMetric : 23

PolicyStore :



This command uses the Remove-VpnConnectionRoute cmdlet to remove a route associated with an IPv6 address prefix. The command also specifies the PassThru parameter to return
an object.