Get-NetIPCConfiguration

Get IP network configuration. Gets network configuration, including usable interfaces, IP addresses, and DNS servers. Without any parameters, Get-NetIPCConfiguration gets IP configuration properties for all non-virtual connected interfaces on a computer.

Syntax
      Get-NetIPConfiguration [[-InterfaceAlias] String] [-AllCompartments] [-CompartmentId Int32]
         [-Detailed] [-CimSession CimSession] [CommonParameters]

      Get-NetIPConfiguration -InterfaceIndex Int32 [-AllCompartments] [-CompartmentId Int32]
         [-Detailed] [-CimSession CimSession] [CommonParameters]


      Get-NetIPConfiguration [-All] [-AllCompartments] [-CompartmentId Int32]
         [-Detailed] [-CimSession CimSession] [CommonParameters]

Key
   -All
       Retrieve the IP configuration properties for all of the interfaces on a computer,
       including virtual interfaces, loopback interfaces, and disconnected interfaces.

   -AllCompartments
       Get the IP configuration properties for all of the compartments on a computer.

   -CimSession
       Run the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such
       as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local
       computer.

   -CompartmentId
       Specifies an identifier for network compartment in the protocol stack.
       By default, the cmdlet gets Net IP configuration in the default compartment.
       If you specify a value for this parameter, the cmdlet gets any matching Net IP configuration in the
       compartment specified in this field.

   -Detailed
       Retrieve additional interface and computer configuration information, including the computer name,
       link layer address, network profile, MTU length, and DHCP status.

   -InterfaceAlias
       An alias of a network interface. The cmdlet gets an IP configuration that matches the alias.

   -InterfaceIndex
       An index of a network interface. The cmdlet gets an IP configuration that matches the index.

Standard Aliases for Get-NetIPCConfiguration: none

Examples

Get the IP configuration:

PS C:\> Get-NetIPConfiguration

Get all IP configuration details

PS C:\> Get-NetIPConfiguration - all

Get the IP configuration information with a common parameter:

PS C:\> Get-NetIPConfiguration -Verbose

Get the IP configuration by interface index:

PS C:\> Get-NetIPConfiguration -InterfaceIndex 12

Get the IP configuration from pipeline input:

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

“A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a working simple system” ~ John Gall

Related PowerShell Cmdlets

Get-NetTCPConnection - Get TCP connections.
Get-DNSClientServerAddress - Get a DNS server IP address from the interface TCP/IP properties.
Get-NetAdapter - Get the basic network adapter properties.
Get-NetIPAddress - Get IP address configuration.
Get-NetIPInterface - Get an IP interface.
Get-NetRoute - Create a route in the IP routing table.
Test-NetConnection - Display diagnostic information for a connection.
NETSTAT - Display current TCP/IP network connections and protocol statistics.


 
Copyright © 1999-2024 SS64.com
Some rights reserved