It's common to have friends over or need to connect a new gadget but forget your wireless network password. Fortunately, if your computer is already connected to the network, the operating system stores the passkey in its memory. This allows you to quickly recover the forgotten password without having to access the router's settings or reset it to factory defaults.
In this article, we'll cover in detail all the current methods for extracting saved passwords on computers running Windows 10, 11, and macOS. Restoring access This is possible using standard system tools, without installing third-party software. We'll cover both the graphical interface and more advanced command-line methods for experienced users.
Before you begin, make sure the device you're looking for the password on has successfully connected to the network you're looking for. If the computer has never "seen" the router, you won't be able to find the key through its settings—you'll need physical access to the router or another connected device. Local memory stores only the data that was previously entered and successfully used.
Finding a password in Windows 10 and 11 using the graphical interface
The simplest and most accessible method for most users is to use the standard network connections menu. In Microsoft operating systems, this functionality is hidden behind several menu levels, but it's easy to access. This method doesn't require any command knowledge and works reliably in all current OS builds.
First, you need to open the Network Connections window. To do this, press the key combination Win + R, enter the command ncpa.cpl and press Enter. In the window that opens, find the icon Wireless network (Wi-Fi) that is currently active. Right-click on it and select State.
In the status window that appears, click the button Wireless network properties. Go to the tab SecurityThis is where the information you're looking for is stored. You'll see the "Network Security Key" field, where the symbols are hidden by dots. To see them, check the box next to the item. Show entered characters.
⚠️ Note: You may need administrator privileges to view your security key in the Security tab. If prompted, enter your account password or allow changes.
It's worth noting that the settings interface has been significantly redesigned in Windows 11, and the path may differ. In the new OS, the easiest way is to right-click the Wi-Fi icon in the system tray (near the clock), select Network and Internet, then go to Additional network settings and further in Managing known networksThere you need to select the desired network and click Properties and find the button View next to the key field.
Using Command Prompt (CMD) to Recover the Key
For users who value speed and precision, or in cases where the graphical interface isn't working correctly, the command line is ideal. This method not only allows you to view the password for the current network but also list all saved profiles. Command line Provides direct access to system storage of network settings.
Run Command Prompt as Administrator. Click Win + X and select Terminal (Administrator) or Command Prompt (Administrator)First, you need to find out the exact name of the network profile. Enter the command:
netsh wlan show profiles
Find your network name in the list. Then use the following command, substituting the profile name:
netsh wlan show profile name="Network_Name" key=clear
In the command output, find the section Security parameters (Security settings). Line Key content (Key Content) will contain your password in plaintext. This method is especially useful if you need to quickly copy a password or if the graphical menu freezes.
What should I do if the command returns the error "Group Policy does not exist"?
This is a rare error related to corporate network security policies or a registry error. At home, try running the command prompt as administrator. If the problem persists, check the "WLAN AutoConfig Manager" service in services.msc—it should be running.
Using the console allows you to automate the process or save the output to a text file, which is convenient for system administrators. However, when manually entering commands, be careful with case and quotation marks if the network name contains spaces.
How to find your Wi-Fi password on macOS
Owners of Apple computers (MacBook, iMac, Mac Mini) also don't have to worry about where their passwords are stored. The macOS operating system stores all keys in a secure vault. Bunch of keys (Keychain Access) is a centralized database of passwords, certificates, and keys.
To find your password, follow these steps:
- 🔍 Open Spotlight Search (Cmd + Space) and type
Bunch of keysorKeychain Access. - 📂 In the list that opens on the left, select the "Passwords" category.
- 🔎 Enter the name of your Wi-Fi network in the search bar.
- 🖱️ Double-click on the found item in the list.
- ✅ Check the box
Show password(Show password).
The system will ask you to confirm your identity. You'll need to enter your Mac user account password or use Touch ID. Once successfully authenticated, the code you're looking for will appear in the text field. This method works on all modern versions of macOS, including Ventura and Sonoma, although the menu layout may vary slightly.
If you've changed the password on your router but it's not updating on your Mac, you might want to remove the old network profile from your keychain before reconnecting to avoid authentication conflicts.
Viewing the password through the router's web interface
If your computer isn't connected to the network or you want to find out the password for a new device, the most secure way is to log in to your router settings. This method is universal and doesn't depend on your computer's operating system. You'll need a browser and access to the router's local network (via cable or Wi-Fi).
Open your browser and enter your router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address, as well as the login and password, are indicated on the sticker on the bottom of the device. After logging in, find the section related to the wireless network. It may be called Wireless, Wi-Fi, Wireless mode or WLAN.
Inside this section, look for the "Security" or "Basic Settings" subsection. Field PSK Password, Wireless Password or "Password" will contain the current access key. Here you can also change it to a more complex one.
| Router brand | Typical IP address | Settings section | Standard login |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security | admin |
| ASUS | 192.168.1.1 | Advanced Settings -> Wireless Network | admin |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings | admin |
| Xiaomi | 192.168.31.1 | Wi-Fi settings | admin |
| Keenetic | 192.168.1.1 | My Networks and Wi-Fi -> Home Network | admin |
⚠️ Note: Router firmware interfaces are frequently updated. Menu locations may differ from those shown in the table. Look for the keywords "Wireless," "Security," or the antenna icon.
☑️ Check before logging into the router
Third-party password recovery programs
While the built-in tools of Windows and macOS are quite effective, there are specialized utilities that automate the key extraction process. Programs such as WirelessKeyView from NirSoft or WiFi Password Revealer, scan the system registry and display a list of all saved networks with passwords in a convenient format.
Using third-party software is justified if you need to quickly download a list of passwords from multiple computers or if standard methods are blocked by the system administrator for some reason. However, be extremely careful when downloading such tools:
- 🛡️ Download programs only from the official websites of the developers.
- 🦠 Check files with an antivirus before launching.
- 🚫 Avoid cracked versions, as they often contain Trojans.
Many antiviruses can react to snails as HackTool or PUP (Potentially Unwanted Program), because they access sensitive data. This is a false positive, but it requires adding the program to the exceptions, which reduces the overall system security level.
Security issues and data protection
Understanding where and how passwords are stored raises security concerns. If an attacker gains physical access to your unlocked computer with administrator privileges, they can easily extract all stored Wi-Fi passwords. This is why it's important to protect your user account with a strong password.
Furthermore, storing passwords in cleartext (as the command line does when outputting) requires caution. Don't take screenshots of the screen with the security key visible or send them via instant messaging. Disk encryption (BitLocker in Windows or FileVault in macOS) is a mandatory security measure that prevents data from being read from the hard drive if the laptop is stolen.
It's recommended to change your Wi-Fi passwords periodically, especially if you've previously had guests or strangers connect to your network. Changing the router password will automatically disconnect all devices, forcing you to enter a new key, ensuring your list of trusted users is up-to-date.
Is it possible to find out the Wi-Fi password if the computer is not connected to it?
No, this can't be done using standard Windows or macOS tools. The operating system only stores keys that have been successfully used to connect. If a device has never connected to a given network, it simply won't have the password. The only option is to access the router or another device that already knows the password.
What should I do if I forgot my router admin password?
If you changed the default password for your router's web interface and forgot it, it can't be recovered. The only solution is to perform a factory reset (hard reset). To do this, press and hold the Reset button on the device for 10-15 seconds. This will reset the router to its default login and password (indicated on the sticker), but you'll have to reconfigure all internet and Wi-Fi settings.
Is it safe to save a password in Windows?
Yes, it's safe for home use. Passwords are stored in a secure section of the registry and are only accessible to users with administrator rights. However, if you use a public computer, never agree to save your password and always log out after use.
Why does the netsh wlan command give an error?
Most often, this error occurs due to a lack of administrator rights when launching the command prompt. A typo in the network profile name could also be the cause. Make sure the name in quotation marks exactly matches the network name in the profile list, including capitalization and spaces.