This is the built-in help made by Microsoft for the command 'Get-NetIPInterface', 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.
Gets an IP interface.
Get-NetIPInterface [[-InterfaceAlias] <String[]>] [-AddressFamily <AddressFamily[]>] [-AdvertiseDefaultRoute <AdvertiseDefaultRoute[]>] [-AdvertisedRouterLifetime
<TimeSpan[]>] [-Advertising <Advertising[]>] [-AsJob] [-AutomaticMetric <AutomaticMetric[]>] [-BaseReachableTimeMs <UInt32[]>] [-CimSession <CimSession[]>] [-CompartmentId
<UInt32[]>] [-ConnectionState <ConnectionState[]>] [-CurrentHopLimit <UInt32[]>] [-DadRetransmitTimeMs <UInt32[]>] [-DadTransmits <UInt32[]>] [-Dhcp <Dhcp[]>]
[-DirectedMacWolPattern <DirectedMacWolPattern[]>] [-EcnMarking <EcnMarking[]>] [-ForceArpNdWolPattern <ForceArpNdWolPattern[]>] [-Forwarding <Forwarding[]>]
[-IgnoreDefaultRoutes <IgnoreDefaultRoutes[]>] [-IncludeAllCompartments] [-InterfaceIndex <UInt32[]>] [-InterfaceMetric <UInt32[]>] [-ManagedAddressConfiguration
<ManagedAddressConfiguration[]>] [-NeighborDiscoverySupported <NeighborDiscoverySupported[]>] [-NeighborUnreachabilityDetection <NeighborUnreachabilityDetection[]>]
[-NlMtuBytes <UInt32[]>] [-OtherStatefulConfiguration <OtherStatefulConfiguration[]>] [-PolicyStore <String>] [-ReachableTimeMs <UInt32[]>] [-RetransmitTimeMs <UInt32[]>]
[-RouterDiscovery <RouterDiscovery[]>] [-ThrottleLimit <Int32>] [-WeakHostReceive <WeakHostReceive[]>] [-WeakHostSend <WeakHostSend[]>] [<CommonParameters>]
Get-NetIPInterface [-AsJob] [-AssociatedIPAddress <CimInstance>] [-CimSession <CimSession[]>] [-IncludeAllCompartments] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-NetIPInterface [-AsJob] [-AssociatedRoute <CimInstance>] [-CimSession <CimSession[]>] [-IncludeAllCompartments] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-NetIPInterface [-AsJob] [-AssociatedAdapter <CimInstance>] [-CimSession <CimSession[]>] [-IncludeAllCompartments] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-NetIPInterface [-AsJob] [-AssociatedNeighbor <CimInstance>] [-CimSession <CimSession[]>] [-IncludeAllCompartments] [-ThrottleLimit <Int32>] [<CommonParameters>]
The Get-NetIPInterface cmdlet gets an IP interface, including IPv4 and IPv6 addresses, and the associated address configuration for the IP interfaces. Without parameters,
this cmdlet gets all of the IP interface properties on the computer, including virtual interfaces and loopback interfaces.
<
Online Version: http://go.microsoft.com/fwlink/?LinkId=288382
Format-List
Format-Table
Sort-Object
Where-Object
Get-NetRoute
Set-NetIPInterface
<
Example 1: Get IP interface configuration
PS C:\>Get-NetIPInterface
This command gets the IP interface configuration on the computer on which you run the cmdlet.
Example 2: Get IP interface information for IPv6 addresses
PS C:\>Get-NetIPInterface –AddressFamily IPv6
This command gets information about the IP interface configuration for all IP interfaces for which you have configured IPv6 addresses.
Example 3: Get IP interface information and format the output
PS C:\>Get-NetIPInterface | Format-Table
This command gets information about IP interface configuration, and displays that information in a table.
Example 4: Get IP interface information by interface index
PS C:\>Get-NetIPInterface –InterfaceIndex 12
This command gets information about the IP interface configuration for a specific interface index.
Example 5: Get and sort IP interface information
PS C:\>Get-NetIPInterface | Sort-Object –Property InterfaceIndex | Format-Table
This command gets information about IP address configuration, sorts them numerically by the interface index in the cmdlet name, and then displays them in a table format.
Example 6: Get the IP interface by specifying the router lifetime
PS C:\>Get-NetIPInterface | Where-Object -FilterScript { $_.AdvertisedRouterLifetime.TotalSeconds -Eq 1800 }
This command gets information about IP address configuration for all IP interfaces that have a default AdvertisedRouterLifetime.