PowerShell Logo Small

Get-NetIPConfiguration



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

SYNOPSIS

Gets useful network information including usable interfaces, IP addresses and DNS servers.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


The Get-NetIPConfiguration cmdlet gets useful network information including usable interfaces, IP addresses and DNS servers. Additional
parameters show if the computer is connected to the Internet (Network Profile information), link layer address information and if DHCP is
enabled.


If no parameters are specified, then this cmdlet gets IP configuration properties for all non-virtual connected interfaces on a computer.


This cmdlet does not get the prefix length, which is also known as the subnet mask. The prefix length is an addressing detail retrieved by the
Get-NetIPAddress cmdlet. See the Get-NetIPAddress cmdlet for more information about retrieving the prefix length.



<

RELATED LINKS

navigationLink
--------------
{@{uri=http://go.microsoft.com/fwlink/?LinkId=253567}, @{uri=; linkText=Get-DNSClientServerAddress},
@{uri=; linkText=Get-NetAdapter}, @{uri...


REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-NetIPConfiguration



This example 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

PS C:\>GIP



This example uses the alias for this cmdlet. GIP 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 3

PS C:\>Get-NetIPConfiguration -All



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




EXAMPLE 4

PS C:\>Get-NetIPConfiguration -Verbose



This example gets IP configuration information. By using the Verbose parameter, the networking cmdlets are shown to gather and format the
information displayed in this cmdlet. More information about how to use cmdlets in Windows PowerShell® can be learned by reading the output of
this cmdlet with the Verbose parameter.




EXAMPLE 5

PS C:\>Get-NetIPConfiguration –InterfaceIndex 12



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




EXAMPLE 6

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



This example gets the IP address information, including PrefixLength, for the interfaces determined by this cmdlet.