Skip to content

Get-NetIPConfiguration

SYNOPSIS

Retrieves IP configuration details for network interfaces on the system.

SYNTAX

__AllParameterSets

Get-NetIPConfiguration [[-InterfaceStatus] <string>] [[-AddressFamily] <string>]
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

This function gathers IP configuration data, including IP addresses, subnet masks, gateway addresses, and DNS servers for all network interfaces. It supports optional filtering by interface operational status (Up or Down) and address family (IPv4 or IPv6). The output includes detailed per-address information in a structured object format for each network interface and IP address combination.

EXAMPLES

EXAMPLE 1

Get-NetIPConfiguration

Output:

InterfaceName : Ethernet
Description   : Intel(R) Ethernet Connection
Status        : Up
AddressFamily : InterNetwork
IPAddress     : 192.168.1.10
PrefixLength  : 24
SubnetMask    : 255.255.255.0
Gateway       : 192.168.1.1
DNSServers    : 8.8.8.8, 1.1.1.1

Retrieves the IPv4 configuration for all network interfaces that are currently operational (Up).

PARAMETERS

-AddressFamily

Filters IP addresses by address family ('IPv4' or 'IPv6')

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InterfaceStatus

Filters interfaces based on operational status ('Up' or 'Down')

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

IPConfig

{{ Fill in the Description }}

NOTES