Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source for ProfileName #39

Open
kb2ma opened this issue Jul 22, 2023 · 1 comment
Open

Source for ProfileName #39

kb2ma opened this issue Jul 22, 2023 · 1 comment

Comments

@kb2ma
Copy link

kb2ma commented Jul 22, 2023

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
Copy link
Author

kb2ma commented Jul 22, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant