Needing to connect a new device to a wireless network but forgetting the password is a common occurrence. This can happen when buying a new smartphone or tablet, or when guests are visiting and need internet access. Fortunately, operating systems store access keys to previously connected networks in their registries or keystores. Knowing how to retrieve this information saves time and eliminates the need to reset the router to factory settings.
The data recovery process depends on the operating system installed. Interface Windows, macOS, and Linux each have their own unique features that need to be taken into account. In this article, we'll detail the steps for each platform, as well as a method for logging into the router's admin panel, which is a universal solution. You'll learn where to look for hidden settings and how to use system utilities to display saved settings. security keys.
Before you begin, make sure you have administrator rights on the device. Without these rights, the operating system will block access to critical network settings for security purposes. securityIt's also worth remembering that you can only view passwords for networks your laptop has previously connected to or is currently connected to. If the network is new and your laptop has never connected to it, you'll only be able to find the password through the router's settings or by asking the network owner.
Viewing a password in Windows using a graphical interface
The simplest and most accessible method for Windows users is to use the standard network management menu. This method doesn't require complex commands and is suitable even for novice users. You need to access the active wireless connection status window. This can be done from the taskbar by right-clicking the Wi-Fi icon and selecting the appropriate menu item, or through the network settings.
After opening the connection status window, you'll need to locate the "Wireless Network Properties" button. In the dialog box that opens, click the "Security" tab. This is where the main encryption settings and access key are stored. By default, the "Network Security Key" field is hidden behind asterisks or dots to prevent others from viewing sensitive information.
To display your password, check the "Show entered characters" box. The system may prompt you to confirm administrator rights through the User Account Control window. ImportantPlease note that this method only works for the network the device is currently connected to. If you want to find the password for another saved network that you're not currently connected to, this graphical method won't work and you'll need to use the command line.
⚠️ Note: If you are on a corporate network, access to the "Security" tab may be blocked by your system administrator. In this case, you won't be able to view the key using standard methods.
Using the Command Prompt in Windows for All Networks
The Command Prompt (CMD) or PowerShell offer more powerful tools for managing network connections. This method allows you to see a list of all networks your laptop has ever connected to and retrieve their passwords, even if they're currently inactive. To get started, you'll need to run the Command Prompt as an administrator. This is mandatory, as queries to the system keystore require elevated privileges.
The first step is to enter a command to display all Wi-Fi profiles. The command syntax is as follows:
netsh wlan show profiles
In the "User Profiles" list, you'll see the names of all saved networks. Find the desired name (SSID) and use it in the following command, which will display detailed profile information, including the security key. The command should look like this (replace "NetworkName" with the actual name of your network):
netsh wlan show profile name="Network_Name" key=clear
In the detailed information window that opens, scroll down to the "Security Settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This method is especially useful when you need to quickly restore access to a new device, but your old laptop is no longer connected to the router but remembers the password.
☑️ Algorithm of actions in CMD
It is worth noting that in some cases, especially when using corporate certificates or complex encryption protocols, the key field may remain empty or hidden even when using the command key=clearThis is due to how the operating system saves Credentials for this connection type. For home networks, the WPA2-Personal method works almost always without fail.
How to find out your password on macOS
Apple Macintosh users have access to a unique system keystore called Keychain Access. This utility centrally stores passwords, certificates, and keynotes. You can find it via Spotlight search (press Command + Space) or in the Applications -> Utilities folder. The program's interface may seem complex, but finding a specific password is quite simple.
In the list of categories on the left, select "Passwords." In the right window, find the name of your Wi-Fi network. If the list is long, use the search bar in the upper right corner. Double-click the found item to open the Properties window. In the dialog box that opens, check the "Show password" box. The system will ask you to enter your Mac user account password or use Touch ID to verify your identity.
What should I do if Keychain Access doesn't open my password?
Sometimes iCloud Keychain syncing can block local viewing. Try disabling keychain syncing in iCloud settings for the duration of the process, or use Terminal. The command security find-generic-password -wa"NetworkName" in Terminal can also reveal the password if you allow access in the system window that appears.
An alternative method for modern versions of macOS (Ventura and newer) is to use System Preferences. Go to System Preferences -> Wi-Fi. Find the desired network in the list of known networks and click the information icon or the "Details" button. Next to the password field, you'll see a "Show" button or an eye icon. After authentication (Face ID, Touch ID, or your passcode), the password will be displayed and can be copied.
- 💡 Bunch of keys Syncs passwords between all Apple devices linked to the same Apple ID.
- 🔒 Access to passwords requires user authorization with administrator rights.
- 📱 On iPhone and iPad, you can view the saved password in Settings -> Wi-Fi by tapping the "i" next to the network.
Receiving data via the router's web interface
If the laptop isn't connected to the network or doesn't remember the password, the most reliable source of truth is the router itself. To access the settings, you need to connect to the router by any available means: via an Ethernet cable or via Wi-Fi (if the device is already connected). The login address is usually located on a sticker on the bottom of the device. Most often, this is 192.168.0.1, 192.168.1.1 or a domain name like tplinkwifi.net.
To log in, you'll need the administrator username and password. The factory settings are also located on the sticker (often admin/admin). If you've changed the router's password and forgotten it, you'll have to reset it using the button on the router, which will result in the loss of all provider settings. After successfully logging in, find the section related to wireless mode. It may be labeled "Wireless," "Wi-Fi," "Wireless Network," or "WLAN."
Within this section, look for the "Wireless Security" subsection. This is where the network name (SSID) and password (PSK Password, WPA Key) are listed. In modern interfaces, the password is often hidden, but there's a "Display" button next to it. If there's no such button, you can simply delete the asterisks and type any character to reveal the rest, or copy the field and paste it into a text editor.
| Router brand | Typical IP address | Path to Wi-Fi settings | Factory login/password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | admin / admin |
| ASUS | 192.168.1.1 | Wireless Network -> General | admin / admin |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | admin / (empty) |
| Keenetic | 192.168.1.1 | Home network -> Wi-Fi network | admin / 1234 |
| Tenda | 192.168.0.1 | Wireless Settings -> Wireless Security | admin / admin |
Recovery Features in Linux (Ubuntu/Debian)
In Linux-based operating systems such as Ubuntu, Fedora, or Debian, Wi-Fi settings are stored in text-based configuration files. These are accessed through the terminal. The standard path to NetworkManager configuration files is /etc/NetworkManager/system-connections/However, it is not possible to simply read these files, since they belong to the root superuser and have limited access rights.
To view the contents of a file for a specific network, use the command cat or nmcli with a prefix sudoFirst, you can connect all connections with the command nmcli connection showThen, knowing the connection name, run the command:
sudo cat /etc/NetworkManager/system-connections/"Network_name".nmconnection
Or, in older versions:
sudo cat /etc/NetworkManager/system-connections/"Network_Name"
In the command output, look for a line that starts with psk=The value after the equal sign is your password. Please note that in newer versions of NetworkManager, files may have the extension .nmconnection, and in older versions, they may have no extension at all. File names may also be hashed or changed if the connection was imported from other sources.
Access problems and possible errors
When recovering passwords, users often encounter technical obstacles. One common issue is the error "Windows could not save your network settings" when attempting to view properties. This may indicate a corrupted network profile. In this case, it's best to delete the profile using the command netsh wlan delete profile name="Network_Name" and reconnect if the password is known, or use the router to clarify it.
Another situation is the lack of access rights to files in Linux or the command line being blocked by an antivirus. Antivirus software Sometimes it detects attempts to access system password storage as suspicious activity. Temporarily disable security modules or add an exception for system utilities. Also, make sure the network adapter is working correctly and the drivers are installed.
⚠️ Note: Router interfaces and operating system versions are constantly updated. Menu locations and exact item names may differ from those described in the instructions. Always follow the interface logic: look for words like Wireless, Security, WPA, and Key.
If you're trying to connect to a public network (like a cafe or airport) that uses web-based authentication (Captive Portal), there may not be a password. Access is granted after accepting the terms of service on the provider's page. In such cases, searching for a WPA2 key is pointless, as the network may be open (Open), and security is implemented at the gateway software level.
FAQ: Frequently Asked Questions
Is it possible to find out my neighbors' Wi-Fi password if I'm not connected to their network?
No, this is impossible to do legally without access to their equipment. Hacking someone else's Wi-Fi network is a violation of computer information laws. All the methods described in this article only work with networks to which your laptop has previously connected or to which the router administrator has access.
What should I do if the netsh command returns the error "Network not found in the list"?
This means your laptop has never connected to this network, or the profile has been deleted. In this case, the only solution is to access the router settings (if you own it) or physically inspect the device, where the factory password may be listed on a sticker.
Is it safe to store passwords on the command line?
The command prompt doesn't store passwords; it only displays those already saved in the system. However, command history may be retained. After working in the terminal on someone else's computer, it's recommended to clear the command history to prevent others from seeing your network names.
Is it possible to view the password on an Android tablet without root access?
On standard versions of Android without root access, viewing the saved password in plain text is not possible for security reasons. On Android 10 and higher, if you have a fingerprint scanner, you can tap the "Share" button (QR code) in the Wi-Fi settings, and the password will be displayed under the QR code.