Is it possible for IPCONFIG on Vista to display the status of one adapter only?

I have so many adapters that the one I want has scrolled off the top.

Alternatively, is there another program that could display the status of a specific adapter (IP address etc…)

  • 'ipconfig | more' not an answer to your question, but a solution Aug 8, 2009 at 22:57
  • btw use 'space' to show more Aug 8, 2009 at 23:04
  • Yes - 'ipconfig | more' is a reasonable workround. I would prefer if IPCONFIG could be selective but there one is.... If this was an answer I would accept it
    – justintime
    Aug 9, 2009 at 18:21

6 Answers 6


It's not as short as ipconfig, but you can use netsh to do this:

> netsh interface ip show addresses "Local Area Connection"

Configuration for interface "Local Area Connection"
    DHCP enabled:                         Yes
    IP Address:                 
    Subnet Prefix:               (mask
    Default Gateway:            
    Gateway Metric:                       0
    Default Gateway:            
    Gateway Metric:                       0
    Default Gateway:            
    Gateway Metric:                       0
    InterfaceMetric:                      4245

Replace "ip" in the command by "ipv6" to get IPv6 information.

Put it into a batch for less typing :-)

  • 1
    Discovered the grep-like | findstr "<string>" for those parsing the output (in my case, looking for subnet information).
    – msanford
    Jun 2, 2014 at 18:01

netsh interface ip show addresses "Local Area Connection"

just a sidenote: This doesn't reflect the current state.

When I tried this solution to check the dhcp address, it wouldn't update the status until ipconfig was issued.


To achieve the goal of only outputting one adapter, pipe the string of commands to head (from the GnuWin32 package).

:: Output network adapter name and IP addresses using native commands only

ipconfig /all | findstr /IR "ipv4 ethernet adapter" | findstr /IRV "description tunnel vpn dial bluetooth [2-9]:$" | findstr /LV "*"
:: Using grep binary from gnuwin32 output only network adapter name and IP addresses

ipconfig /all | grep -iE "ipv4|ethernet|adapter" | grep -iEv "description|tunnel|vpn|dial|bluetooth|[2-9]:$" | grep -iFv "connection*"
:: And one more that yields the bare essentials (hostname, adapter name, MAC, IPv4, subnet, gateway, DNS)
:: I purposefully excluded v6 addresses because I don't have a need, if you need then just omit it

ipconfig /all | findstr -iv "ipv6 bluetooth Description DHCP Autoconfiguration Netbios routing wins node Connection-specific obtained expires disconnected"

See https://blog.travisflix.com/output-ip-address-with-ipconfig/ for more detail.

  • Welcome to Super User! Can you include the relevant info from your link - ie what command to issue, how to install head ? Cheers!
    – bertieb
    Feb 14, 2019 at 13:31
  • @bertieb Your wish is my command. It has been done. Link is included to the official source of GnuWin32. Feb 14, 2019 at 22:27

From your question it sounds like you're not aware that you can change the Screen Buffer Size for the command window in Windows? This gives you a scroll bar at the side of the window that you can use to scroll back up to view info that's scrolled off the top of the window.

On the console window click the icon at the left of the title bar (or just right-click the title bar) select Defaults, click the Layout tab, change the Screen Buffer Size Height to something quite a few times larger than the Window Size Height (mine are currently 25 lines height for the window, but 300 lines for the screen buffer height).

Can't remember if this was on by default for Vista or not, but for XP and prior you definitely had to go in and manually change it to something sensible yourself.

The other very useful option that I always change on a new install are switching on QuickEdit Mode on the first tab. This lets you select text in the command window with the mouse, then just hit Enter to send it to the clipboard, and just right click on the console window to paste (obviously don't switch this on if you use any console apps that use the mouse).

  • Doesn't it already default to 80x300? (Unless the poster still uses command.com...) Aug 9, 2009 at 7:55
  • Thanks for tip - I am aware that you can change the the buffer size, but would prefer not to have to scroll back.
    – justintime
    Aug 9, 2009 at 18:18

I installed Gnu Grep for windows and then modified my path so I could run grep from anywhere

Then I made a batch file that contains

ipconfig | grep -A5 -i "Ethernet Adapter Local Area Connection:"

I have a TON of adapters so ipconfig by itself was a pain.

  • Been looking for that.
    – Mandark
    Nov 13, 2016 at 11:35

You can also view that information in the Network and Sharing Center.

From the Network and Sharing Center, click "Manage network Adapters" or similar - this will show the network connections folder. If you double click on a connection, you'll see the same output as ipconfig in a gui.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .