Posted: . At: 9:07 AM. This was 2 months ago. Post ID: 19333
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


List WiFi networks with Powershell on Windows.


It is easy to list all WiFi networks with Powershell on Windows 11. Using the netsh command, this can list all WiFi network SSID instances.

PS C:\Users\Intel i5> netsh wlan show networks | Select-String "SSID"
 
SSID 1 :
SSID 2 : Telstra20E859
SSID 3 : TelstraD22F23
SSID 4 : Telstra1B31
SSID 5 : OPTUS_D3CB28N
SSID 6 : WiFi-955DD6
SSID 7 : OPTUS_D02825_5GHz
SSID 8 : TelstraDB031C
SSID 9 : USO
SSID 10 : Telstra6C5A3A
SSID 11 : DIRECT-Ml[TV] Samsung Q60 Series
SSID 12 : OPTUS_D02825
SSID 13 : RustyCat

If you install the wifiprofilemanagement module for Powershell, this allows retrieval of information about Wireless networks on Windows.

PS C:\Users\Intel i5> Install-Module -Name wifiprofilemanagement
 
Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"):

Then get information about the Wi-Fi adapter.

PS C:\Users\Intel i5> Get-NetAdapter -Physical | where PhysicalMediaType -eq "Native 802.11"
 
Name                      InterfaceDescription                    ifIndex Status       MacAddress             LinkSpeed
----                      --------------------                    ------- ------       ----------             ---------
Wi-Fi 3                   Realtek 8822BU Wireless LAN 802.11ac...      45 Disconnected 90-DE-80-D9-ED-01          0 bps

Then use the adapter ID name to get a list of all Wireless networks.

PS C:\Users\Intel i5> Get-WiFiAvailableNetwork "Wi-Fi 3"
 
ProfileName          SignalQuality  SecurityEnabled dot11DefaultAuthAlgorithm dot11DefaultCipherAlgorithm SSID
-----------          -------------  --------------- ------------------------- --------------------------- ----
                     34             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP
                     48             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      TelstraD22F23
                     48             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      Telstra20E859
                     50             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      TelstraDB031C
                     68             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      OPTUS_D3CB28N
                     40             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      Telstra1B31
                     46             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      WiFi-955DD6
                     48             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      OPTUS_D02825_5GHz
                     50             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      USO
                     52             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      OPTUS_D02825
                     62             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      DIRECT-Ml[TV] Sam...
                     100            True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      RustyCat
                     50             True            DOT11_AUTH_ALGO_RSNA_PSK  DOT11_CIPHER_ALGO_CCMP      Telstra6C5A3A

Get a listing of just the signal quality.

PS C:\Users\Intel i5> Get-WiFiAvailableNetwork "Wi-Fi 3" | Select-Object SignalQuality
 
SignalQuality
-------------
           36
           36
           50
           66
           46
           46
           48
           50
           50
           54
           54
           36
          100

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.