Last Updated: January 25, 2021
·
1.824K
· oschrenk

List known WLANs

To list all wireless networks your system has used in the past:

defaults read ~/Library/Logs/com.apple.wifi.syncable-networks.plist | grep " SSID" | sed 's/^.*= \(.*\);$/\1/' | sed 's/^"\(.*\)"$/\1/'

5 Responses
Add your response

Sorry, I clicked "Recommend" a bit too soon...I tried running this just now and got the following error:
The domain/default pair of (/Library/Preferences/SystemConfiguration/com.apple.airport.preferences, RememberedNetworks) does not exist

Using Big Sur 11.1.
Just a note, I am not a coder in any way so probably might need a Kindergarten response. I just happen to enjoy digging the brains of coders for solutions to some Mac grievances from time-to-time.

over 1 year ago ·

I'm not sure when but they moved the network list from the system library to each user's library to make it sync over iCloud. I edited the pro tip to accommodate the changes. Try it out.

over 1 year ago ·

Thanks @oschrenk it worked this time. Do you know of any way to find the first and last time each network on the list was accessed? Haven't had any success with finding this info.

over 1 year ago ·

defaults read ~/Library/Logs/com.apple.wifi.syncable-networks.plist will also get you the date when it was first added (to be synced) and you will find some idea of when it was joined like this

lastJoinedBySystemAtWeek = 1045;
lastJoinedByUserAt = "2021-01-10 12:42:28 +0000";

but the data is not there for all entries and (only) has a granularity of a week. It might be a starting point for you. Have fun exploring.

over 1 year ago ·

Thanks @oschrenk!

over 1 year ago ·