This is the built-in help made by Microsoft for the command 'Remove-NetVirtualizationProviderRoute', 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.
Removes physical network routes for a virtualized network.
Remove-NetVirtualizationProviderRoute [-AsJob] [-CimSession <CimSession[]>] [-DestinationPrefix <String[]>] [-InterfaceIndex <UInt32[]>] [-Metric <UInt32[]>] [-NextHop
<String[]>] [-PassThru] [-ThrottleLimit <Int32>] [<CommonParameters>]
Remove-NetVirtualizationProviderRoute [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>] -InputObject <CimInstance[]> [<CommonParameters>]
The Remove-NetVirtualizationProviderRoute cmdlet removes physical network routes for a Microsoft® Hyper-V® Server 2012 virtual network. Network Virtualization allows more
than one virtual network to exist on the same physical network. Computers can exchange network traffic with a virtual machine (VM) by using a Customer Address within the
virtual network. This cmdlet removes Provider Routes that Network Virtualization uses to direct network traffic on the physical network. For more information, see Network
Virtualization technical details (http://technet.microsoft.com/library/jj134174.aspx) on TechNet.
You can use the Get-NetVirtualizationProviderRoute cmdlet to get routes to delete, or you can specify Provider Routes by using any combination of the following:
-- Destination.
-- Interface.
-- Metric.
-- Next hop gateway.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=289190
Get-NetVirtualizationProviderRoute
New-NetVirtualizationProviderRoute
Set-NetVirtualizationProviderRoute
<
Example 1: Remove all Provider Routes
PS C:\> Remove-NetVirtualizationProviderRoute
This command removes all the Provider Routes for a Hyper-V Server 2012 host.
Example 2: Remove Provider Routes for a specified interface
PS C:\>Remove-NetVirtualizationProviderRoute -InterfaceIndex 12
This command removes Provider Routes for an interface that has an index of 12.
Example 3: Remove Provider Routes
PS C:\>Remove-NetVirtualizationProviderRoute -DestinationPrefix "0.0.0.0/0" -NextHop "10.1.1.1" -InterfaceIndex 22
This command removes a Provider Route for the specified interface, for all network addresses that has the specified next hop value.