PowerShell Logo Small

Get-NetIPConfiguration



This is the built-in help made by Microsoft for the command 'Get-NetIPConfiguration', 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

Gets IP network configuration.

SYNTAX


Get-NetIPConfiguration [[-InterfaceAlias] <String>] [-CimSession <CimSession>] [-Detailed] [<CommonParameters>]
Get-NetIPConfiguration [-CimSession <CimSession>] [-Detailed] -All [<CommonParameters>]
Get-NetIPConfiguration [-CimSession <CimSession>] [-Detailed] -InterfaceIndex <Int32> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetIPConfiguration cmdlet gets network configuration, including usable interfaces, IP addresses and DNS servers.


If you do not specify any parameters, this cmdlet gets IP configuration properties for all non-virtual connected interfaces on a computer.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=288381
Get-DNSClientServerAddress
Get-NetAdapter
Get-NetIPAddress
Get-NetIPInterface
Get-NetRoute

REMARKS

<

Examples


Example 1: Get the IP configuration

PS C:\>Get-NetIPConfiguration



This command gets IP configuration information. When this cmdlet is run without parameters, it gets the IP configuration information for all of the non-virtual connected
interfaces on the computer.




Example 2: Get all IP configuration details

PS C:\>Get-NetIPConfiguration -All



This command gets the IP configuration information for all of the interfaces on the computer, including virtual interfaces, loopback interfaces, and disconnected interfaces.




Example 3: Get the IP configuration information with a common parameter

PS C:\>Get-NetIPConfiguration -Verbose



This command gets IP configuration information. By using the Verbose parameter, the networking cmdlets are shown to gather and format the information displayed in this
cmdlet.




Example 4: Get the IP configuration by interface index

PS C:\>Get-NetIPConfiguration –InterfaceIndex 12



This command gets the IP configuration information for the interface at the index 12.




Example 5: Get the IP configuration from pipeline input

PS C:\>Get-NetIPConfiguration | Get-NetIPAddress



This command gets the IP address information, including the prefix length.