Command Reference

Get-NetIPConfiguration

PowerShell Networking Beginner Risk: Low
Back to Command Library

Summary

Shows active interfaces with IP addresses, default gateways, and DNS servers.

Syntax

Get-NetIPConfiguration [-InterfaceAlias <String[]>]

Examples

Get-NetIPConfiguration | Select-Object InterfaceAlias, IPv4Address, IPv4DefaultGateway, DNSServer

Displays essential IP settings without modifying them.

Permissions

Administrator required: No

Viewing common IP configuration normally does not require elevation.

Risk and Impact

Risk level: Low

Changes the system: No

Network addresses may reveal internal network details; review output before sharing.

Supported Platforms

Windows 10 Windows 11 Windows Server

Important Output Fields

IPv4Address

Current IPv4 address assigned to the interface.

IPv4DefaultGateway

Router used to reach other networks.

DNSServer

Servers used for hostname resolution.

Common Errors

No matching MSFT_NetIPConfiguration objects found

No interface matched the requested filter.

Related Articles

These Gnojo articles use or explain this command.

Networking Beginner

Inspect Windows Network Configuration with ipconfig

The ipconfig command displays Windows TCP/IP configuration. It can show addresses, subnet masks, default gateways, DNS servers, and DHCP details that help diagnose connectivity problems. Its release, renew, and flush options change network state and should be used only when the symptom justifies them.

View Article

Official References

Get-NetIPConfiguration

Microsoft Learn · Official Documentation

Open Source