11

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

But it only shows one Wi-Fi which is I am using whereas when I click the network and sharing center icon on right side of status bar it shows various Wi-Fi both secured and unsecured to which my computer can connect.

How can I display the other wireless connections?

1
  • is the command available in cygwin?
    – Timo
    Mar 20 '19 at 19:01
9

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.

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

3
  • This is especially good, now that Windows 8+ stopped displaying additional network information (encryption type etc) from the built-in GUI, like was the case in Windows 7 and older by hovering the mouse above the network names.
    – MrBrody
    Jul 5 '17 at 5:00
  • 1
    I put "netsh wlan show networks" and get 0 networks while I'm actually using one of them to write this post. Why is that?
    – Peter.k
    Apr 3 '20 at 7:49
  • @Peter.k Try disconnect before run this command.
    – Io-ol
    Jul 31 '20 at 0:15
1
  • To list all Wi-Fi networks that are available (in range) on the command line, use:
netsh wlan show networks

Obs.: This command shows that the Wi-Fi network is currently connected, for a list of all available networks, discounting your current network first.


  • For a listing of SSID [Number] : [Name] only:
netsh wlan show networks|find "SSID"

  • For a listing of [Names] only:
for /f "tokens=2*delims=: " %i in ('netsh wlan show networks^|find "SSID"')do @echo\%j

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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