This is the built-in help made by Microsoft for the command 'Remove-NetNeighbor', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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.
Deletes a neighbor cache entry for IPv4 or IPv6.
Remove-NetNeighbor [[-IPAddress] <String[]>] [-AddressFamily <AddressFamily[]>] [-AsJob [<SwitchParameter>]] [-AssociatedIPInterface
<CimInstance>] [-CimSession <CimSession[]>] [-InterfaceAlias <String[]>] [-InterfaceIndex <UInt32[]>] [-LinkLayerAddress <String[]>]
[-PassThru [<SwitchParameter>]] [-PolicyStore <String>] [-State <State[]>] [-ThrottleLimit <Int32>] [-Confirm [<SwitchParameter>]] [-WhatIf
[<SwitchParameter>]] [<CommonParameters>]
Remove-NetNeighbor [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-ThrottleLimit <Int32>]
-InputObject <CimInstance[]> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
The Remove-NetNeighbor cmdlet deletes a neighbor cache entry for IPv4 or IPv6. The neighbor cache maintains a list of information for each
on-link neighbor, including the IP address and the associated MAC address.
<
Where-Object
Get-NetNeighbor
New-NetNeighbor
Set-NetNeighbor
Get-NetAdapter
<
EXAMPLE 1
PS C:\>Remove-NetNeighbor –State Unreachable
This example deletes all neighbor cache entries that are unreachable.
EXAMPLE 2
PS C:\>Get-NetAdapter | Where-Object –FilterScript {$_.LinkSpeed –Eq "100 Mbps"} | Remove-NetNeighbor –AddressFamily IPv4
This example deletes all neighbor cache entries that have IPv4 addresses and are associated with a network adapter that has a link speed of
100 Mbps.