kevva / wifi-name

Get current wifi name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Profile name may not be the same as SSID!

akaleeroy opened this issue · comments

basically the script just executes netsh wlan show profile name=[SSID] key=clear

The profile name may not hold the same value as the SSID! Sometimes the SSIDs have unspecific names and I don't know what I'm connected to. So I rename them to something useful in Manage wireless networks.

The SSID is useful too, so we shouldn't just discard it and replace with Profile. That means introducing a choice...

And God forbid if the Profile name has special characters in it, such as double-quotes ", hashes #, dashes - or UTF8 characters:

Is there any way to tell them apart though? I.e. if you can get the SSID using another method?