WiFiProfileManagement icon indicating copy to clipboard operation
WiFiProfileManagement copied to clipboard

Source for ProfileName

Open kb2ma opened this issue 2 years ago • 1 comments

Get-WiFiProfile and Get-WifiAvailableNetwork return a ProfileName. I'd like to understand how this corresponds to other similar names. I have attached a screenshot to illustrate my questions.

  1. Is ProfileName the same as the name in the Windows Settings->Wi-Fi dialog list?
  2. Will ProfileName always exactly match the WiFi network's SSID as reported by Get-WifiAvailableNetwork, assuming the WiFi network is available?
  3. How can I correlate a network in Get-WiFiAvailableNetwork with an active connection? In the screenshot below, how do I know whether WiFi profile lep22pard or gal47lows is active on InterfaceIndex 9? In this case lep22pard is on 5 GHz and gal47lows is on 2.4 GHz from the same AP.

Originally I thought the WiFi ProfileName corresponded to the Windows network name in Get-NetConnectionProfile and the control panel, but I see that is not always the case, as with "leppard 2" in the screenshot.

wifi-names-hilite

kb2ma avatar Jul 22 '23 15:07 kb2ma

Looks like netsh has the correlation between Wi-Fi profile name and connected SSID from netsh wlan show interfaces, like below.

Is there a way to make this determination within WiFiProfileManagement or some other native Powershell module?

netsh-interfaces

kb2ma avatar Jul 22 '23 17:07 kb2ma