View full network configuration with ipconfig /all

Show every adapter's IP, subnet, gateway, DHCP and DNS servers in one command.

WindowsnetworkDiagnosticsipconfigLow risk
Run `ipconfig /all` to print the complete IP configuration of every network adapter.

01Command

Command
$ ipconfig /all

02What it does

Plain `ipconfig` only shows the essentials; the /all switch adds DHCP status, lease times, DNS servers, the MAC address and the host name. This is usually the first command to run when diagnosing why a PC cannot reach the internet. In PowerShell, `Get-NetIPInterface` and `Get-NetIPAddress` offer similar data in object form.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Get-NetIPInterface
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Returns IP interface properties such as ConnectionState and Dhcp per address family.
  • netsh
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.

Last verified: 2026-09-18 · Category: Network

06Related solutions