How do I display a list of Wi-Fi connections using netsh

How can I display the other wireless connections?

command netsh wlan show profiles through command prompt shows list of all the all Wi-Fi available at that time to which my computer can connect.

The above command shows only those connections which have profiles.

  • They are connections you have previously connected to and have saved configurations.

  • It will always show your current connection (if you are using wireless).

  • These connections may not be available from your current location.

To list all available connections you need to use a different netsh command:

netsh wlan show networks
  • These connections are available at your current location.
  • You must be disconnected from all wireless networks before running this command.

Example output (names have been obscured):

f:\test>netsh wlan show networks

Interface name : Wireless Network Connection
There are 22 networks currently visible.

SSID 1 : SKYXXXXX
    Network type            : Infrastructure
    Authentication          : WPA2-Personal
    Encryption              : CCMP

SSID 2 : SKYXXXXX
    Network type            : Infrastructure
    Authentication          : WPA2-Personal
    Encryption              : CCMP

SSID 3 : XXXXX
    Network type            : Infrastructure
    Authentication          : WPA2-Personal
    Encryption              : CCMP

SSID 4 : BTOpenzoneXXX
    Network type            : Infrastructure
    Authentication          : Open
    Encryption              : None

...

Netsh Commands for Wireless Local Area Network (WLAN)

show networks

Displays a list of wireless networks that are visible on the computer.

Syntax

show networks [[interface=]InterfaceName] [[mode=]{ssid|bssid}]

...

show profiles

Displays a list of wireless profiles that are configured on the computer.

Syntax

show profiles [[name=]ProfileName] [[interface=]InterfaceName] [[key=clear]

Source - Netsh Commands for Wireless Local Area Network (WLAN)


Further Reading

  • An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
  • netsh - Configure Network Interfaces, Windows Firewall, Routing & remote access.
  • Netsh Commands for Wireless Local Area Network (WLAN)