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?
12 Answers
How can I display the other wireless connections?
command
netsh wlan show profilesthrough 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)
- To list all Wi-Fi networks that are available (in range) on the command line, use:
netsh wlan show networksObs.: This command shows that the Wi-Fi network is currently connected, for a list of all available networks, disconnect 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