#Wi-Fi
26 solutions
Reveal the stored password of a wireless network Windows has connected to, using netsh wlan show profile key=clear.
Remove a saved wireless profile so Windows stops auto-connecting to a network, using netsh wlan delete profile.
networksetup -setairportpower switches the Wi-Fi hardware on or off, the same toggle the Wi-Fi menu performs.
Use networksetup -setairportnetwork to connect your Mac to a Wi-Fi network by name and password without touching the Wi-Fi menu.
List surrounding Wi-Fi networks with signal, channel, and encryption type using the hidden airport scan command.
Power-cycle the Wi-Fi interface to fix dropouts and stuck connections — no reboot needed.
List every Wi-Fi network the Mac remembers and delete one so it never auto-joins again.
On a server or over SSH there is no GUI — NetworkManager's nmcli can scan, connect and save Wi-Fi profiles entirely from the command line.
Start a wireless connection to a saved network profile with netsh wlan connect.
Show live details of the current wireless connection with netsh wlan show interfaces.
networksetup -getinfo summarizes a named network service: IP, subnet mask, router, and configured DNS.
networksetup -getairportnetwork prints the SSID the Wi-Fi interface is associated with, right now.