It's quite common to need to connect a new device to a wireless network but lose or forget the access key. Fortunately, if your laptop or desktop computer already has an active connection to the desired access point, the operating system stores this data securely. This allows the owner to recover the forgotten password at any time without having to reset the router or contact the ISP.
The recovery process depends on the operating system you are using, whether it is Windows or macOSIn both cases, you'll need administrator privileges, as access to saved network keys is considered confidential. Below, we'll cover the standard methods, command line usage, and the router's web interface in detail.
Password recovery through Windows 10 and 11 settings
operating system Windows Stores profiles of all networks the computer has ever connected to. The easiest way to view the saved key is through the Settings graphical interface. This method is the safest for inexperienced users, as it eliminates the risk of accidentally changing system files or settings.
First, open the network management menu. Right-click the Wi-Fi icon in the system tray (near the clock) and select "Network & Internet settings." In the window that opens, find the "Wi-Fi" section and scroll down to "Change adapter settings" or "Advanced network settings." Here you'll see a list of available connections.
Next, you need to follow the sequence of actions to display the key:
- 🔍 Find your active connection, right-click on it and select "Status."
- 🔐 In the window that opens, click the "Wireless Network Properties" button.
- 👁️ Go to the "Security" tab and check the box next to "Show entered characters".
⚠️ Note: If the Security tab is missing or the fields are grayed out, make sure you are logged in with permissions. administratorRegular user accounts may not have access to this data.
After completing these steps, the required character combination will appear in the "Network Security Key" field. We recommend copying it immediately or writing it down in a safe place. Please note that on some corporate networks, administrators may block the ability to view passwords even for local administrators for security purposes. security policies.
Using the command line to get the key
For those who prefer speed and accuracy, using the command line is an excellent solution. CMD or PowerShellThis method is universal and works even when the graphical interface isn't working correctly or is limited by group policies. You don't need to be a programmer; simply copy the command exactly.
Open the command prompt as administrator. To do this, enter cmd In the search box, right-click "Command Prompt" and select the appropriate option. The first step is to get the exact network profile name if you don't remember it by heart. Enter the command:
netsh wlan show profiles
Find your network name in the list. Then use the following command to display all stored data, including the cleartext password:
netsh wlan show profile name="Your_Network_Name" key=clear
In the command output, look for the "Security settings" section. The "Key Content" line will contain the password you're looking for. This method is especially useful if you need to quickly retrieve keys for multiple networks your PC has previously connected to.
Viewing saved networks on macOS
Computer users Apple can also easily restore access to forgotten data. In macOS, this information is stored in the Keychain (Keychain Access), which is the centralized storage of system passwords. The process is slightly different from Windows, but it also doesn't require installing third-party software.
Open Keychain Access via Spotlight search (click Cmd + Space and enter "Keychain." In the left menu, select the "System" or "iCloud" category, then go to the "Passwords" section. Find the name of your Wi-Fi network in the list.
Double-click the network name. A properties window will open, where you should check the "Show password" box. The system will ask you to verify your identity: enter your Mac user account password or use Touch ID. Once successfully authenticated, the password will appear in the text field.
| operating system | Access method | Necessary rights | Complexity |
|---|---|---|---|
| Windows 10/11 | GUI / CMD | Administrator | Low |
| macOS | Bunch of keys | User | Low |
| Linux | Terminal / Files | Root / Sudo | Average |
| Android | QR code / Settings | User | Low |
Login to the router's web interface
If none of the computer-based methods work, or you want to find the password for a device that's currently not connected, you can access the source of the connection—your router. To do this, you need to access its admin panel. Your computer must be connected to the router (via Wi-Fi or cable).
Open your browser and enter the gateway IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address, username, and password are written on a sticker on the bottom of the device. If you've changed this information before and forgot it, you'll need to reset the router to factory settings.
After logging in, find the section related to your wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, under the "Security" or "WLAN Settings" subsections, you'll find a field labeled "PSK Password," "WPA Pre-Shared Key," or simply "Password." This is where the current access key is stored.
What should I do if I've also lost my router password?
If you don't remember the password for logging into your router's settings (admin/admin), and the default password doesn't work, a hard reset is the only solution. There's a small hole on the back panel. Press it with a paperclip for 10-15 seconds until the router's lights flash. After this, it will reset to factory settings, and you can log in using the login information on the sticker on the router.
Working with the command line in Linux
For distribution users Linux (Ubuntu, Mint, Debian) There's also a simple way to save passwords. They're typically stored in text configuration files in the directory /etc/NetworkManager/system-connections/Access to these files requires superuser rights.
Open terminal and use the command sudo to read the contents of your network configuration file. The file name is usually the same as the network name, but spaces can be replaced with underscores. The command will look something like this:
sudo cat /etc/NetworkManager/system-connections/"Network_Name".nmconnection
In the output, look for a line starting with psk=The value after the equal sign is your password. If you're using the older NetworkManager, the files may have the extension .nmc or stored in a subfolder. You can also use the utility nmcli, which is part of NetworkManager.
⚠️ Warning: When working with the Linux command line, be careful with case and paths. A mistake in a file name will result in the message "File or directory does not exist."
Access issues and security limitations
Sometimes users encounter a situation where the system refuses to display the password, citing security policies or a lack of privileges. This is common in office networks, where the IT department intentionally restricts user access. In home environments, the cause may be a corrupted Windows registry or errors in network services.
If standard methods don't work, you can try third-party password recovery utilities such as WirelessKeyView from NirSoft. They scan the registry and display all saved keys in a convenient format. However, using such software requires caution: download programs only from the developers' official websites to avoid infecting your computer with viruses.
It's also worth remembering that if you're in a public place or using a corporate laptop, attempting to extract passwords may be considered a violation of IT resource usage rules by security personnel. Always act within the legal framework and your organization's internal regulations.
☑️ Check before resetting your router
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the computer is not connected to it?
No, the operating system only stores keys for networks to which the device has connected at least once. If the computer has never connected to this access point, it's impossible to find the password through its settings. In this case, the only solution is to find the sticker on the router, the agreement with the provider, or access the router settings via a cable.
Is it safe to use third-party password recovery programs?
Using trusted utilities from reputable developers (such as NirSoft) is generally safe, but antivirus programs may detect them as "HackTools" because they operate on similar principles to viruses. Always download software from official resources and scan the files.
What should I do if I changed the password on my router, but it still connects automatically on my laptop?
This means the laptop is using an old saved profile. To see the new password, you must first "Forget" the network in the laptop's Wi-Fi settings and then reconnect using the new key. The new password will then be saved in the system.
Where is the Wi-Fi password physically located if the router is new?
There's always a sticker on the bottom or back of your router with the factory settings. Look for a field labeled "WPA/WPA2 Key," "Wireless Password," or "PIN." These settings are only valid if you haven't manually changed the wireless network settings.