Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What Windows (preferably XP) batch command will list all of the network connections that appear in the Network Connections dialog? I've tried RASDIAL, IPCONFIG, NETSTAT, and NET commands with various option combinations, but they only seem to show those that are actually connected. I want to see the ones not connected as well.

CLARIFICATION: I want to be able to see dialups, wireless, firewire, LAN, miniport, VPN, etc. connections whether connected, disconnected, disabled, etc. just like in the Network Connections dialog.

share|improve this question
What "connections"? Maybe clarify? Physical? Logical? ipconfig /all displays physical, while netstat -a will display logical port connections. – AdminAlive Oct 28 '09 at 18:57
up vote 3 down vote accepted

See this Windows script : List Items in the Network Connections Folder.

share|improve this answer
Nice find. On my machine, it only shows: ` ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309 }\::{7007ACC7-3202-11D1-AAD2-00805FC1270E} Local Area Connection`, which is 2 less than netsh, but I don't have any disconnected connections to try it on. – DaveParillo Oct 28 '09 at 19:40
I can use this -- thanks. – Ken Paul Oct 28 '09 at 19:54
The link does not apply anymore. :( – dolmen Mar 26 '11 at 16:03
@dolmen: It worked for me just now. – harrymc Mar 26 '11 at 16:46

Using ipconfig /all doesn't list your disconnected devices?


You might try netsh - it's an interactive program. Type netsh. At the prompt try:

> interface show interface

> bye   (or quit)

I don't have a disconnected interface my self to try this on, sorry in advance.

share|improve this answer
I believe he wants to include things like dialup connections, 1394 connections, and other non-TCP/IP connections. – eleven81 Oct 28 '09 at 19:01
Nope. At the moment, Network Connections shows 1 Internet Connection, 5 LAN connections, and 1 VPN connection. ipconfig /all shows only the 3 connections that are actively connected. – Ken Paul Oct 28 '09 at 19:04
netsh shows almost everything, but not the VPN connection. – Ken Paul Oct 28 '09 at 19:53

Maybe this from a batch file?

NetSh Interface httpstunnel Show Interfaces
NetSh Interface IPv4 Show Interfaces
NetSh Interface IPv6 Show Interfaces
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.