Networking/Computing Tips/Tricks

If you attend our WLAN Operations course, one of the things we discuss is Active Scanning.  Your system uses your saved Wi-Fi networks to actively scan for those networks (probing).  There are potential security risks in this, especially with free networks.  Most students conclude they should not remember networks in this way. 

The burning question that remains is: How can I view the list of saved networks easily on my Windows or MAC OSx system?

And perhaps more crucially: How can I delete these remembered networks?

It is actually not very hard.  Let's start with WIndows.

Windows

Below I have started Windows Powershell: Start> Powershell will cause Windows to search for the program.  You could use the Windows CMD as well, but I have been trying to train myself to use Powershell instead.

Then I have entered the following command:

netsh wlan show profiles

Here is the result:

wpswlan1

Look at all those saved Wi-Fi profiles.  The list was truncated BTW.  This means I am probing for all these!

OK - so I now want to clear them ALL out.  Here is the command:

netsh wlan delete profile *

Again here is a screen shot:

wpswlan2

Now if I rerun the show profiles they are all empty:

wpswlan3

Nice!

MAC OSx

Open Terminal from your launcher.

In the terminal, enter the following command:

networksetup -listpreferredwirelessnetworks en0

You will get a list of the saved Wireless networks.  Here is a truncated example:

Screen Shot 2017 11 25 at 10.43.38 AM

To delete them all, use the following command:

networksetup -removeallpreferredwirelessnetworks en0

You should see something like this:

Screen Shot 2017 11 25 at 10.47.12 AM

And now you can verify the list is not there:

Screen Shot 2017 11 25 at 10.49.10 AM

You can also verify this by going to Settings> Network> Advanced to see the list is empty:

Screen Shot 2017 11 25 at 10.51.02 AM

 

If anyone knows how to do this on Linux, please comment and I will add!

Comments powered by CComment

Find by Tag

4G Networks 5G Networks 6LoWLAN 6LoWPAN 802.11 802.11ah 802.11ax 802.11ay 802.11az Ad-Hoc Addressing Analysis Ansible Apple Architecture ARP Assessment AToM Automation Baseline BGP Bloom's Taxonomy Bluehost BPF Briefings Cable Capture Filter CellStream Cellular Central Office Cheat Sheet Chrome Cisco Cloud CMD Company Policy Computer Consulting Data Center Data Networking Dependencies DHCPv6 Display Filter DNS Documentation dumpcap Earth Earthquakes ECMP Ethernet Ethics Etiquette Evaluation Field Operations Five Monkey Rule G-MPLS Gauge GeoIP GNS3 Google GQUIC Hands-On History Home Network ICMP ICMPv6 IEEE 802.11p IEEE 802.15.4 India Internet IoT IPv4 IPv6 IRINN IS-IS L2VPN L3VPN LDP LifeNet Linux LLN LoL M-BGP MAC Macro Management Microsoft Milky Way mininet Monitoring MPLS mtr Multicast Murphy Name Resolution Netcat NetMon netsh Networking nmap NSE Observations OLPC Online School OpenFlow OSPF OSPFv2 OSPFv3 OSX OTT Parrot PIM Policy POTS POTS to Pipes PPP Profile Project Management PW3E QoS QUIC Railroad Remote Desktop Requirements Resume Review RIP Routig Routing RPL RSVP Rural Scanning SDN Security Service Provider Small Business SONET Speed SSL Status Storms Subnetting Support T-Shark TCP TCP/IP Telco Telecom 101 Telecommunications Telephone Testing Tools Traceroute Traffic Engineering Training Travel Tunnel Ubuntu Utility Video Virtualbox Virtualization VoIP VRF VXLAN Wi-Fi Windows Wireless Wireless 5G Wireshark WLAN Writing Zenmap ZigBee

Twitter Feed