It's common to need to connect a new device to the network but forget the password. We often use the internet for years, entering the necessary data only once during the initial setup. Windows or macOS, and completely forget the character combination. Fortunately, operating systems store this information securely, and if you have physical access to an already connected laptop, it's easy to recover.
There are several proven methods for retrieving saved security keys. You can use the system's graphical interface, which is easy to understand even for beginners, or use more advanced tools like the command line for detailed information. It's important to understand that these methods only work if your laptop has previously successfully connected to the access point.
In this guide, we'll cover all the current methods for different operating system versions. We'll cover standard tools. Windows And MacOSWe'll also touch on the ability to view data through the router's web interface. We won't discuss the use of specialized software, as the system's built-in tools are more than sufficient for this task.
Viewing a saved password in Windows 10 and 11
The easiest and safest way to find out a forgotten key is to use the built-in tools of the operating system WindowsThis method does not require installation of third-party software and works stably on all modern versions, including Windows 10 And Windows 11The only requirement is that the laptop must be currently connected to the network or have a saved connection profile.
First, you need to open the Network Connections window. This can be done from the taskbar or the Settings menu. In Windows 10, the path is slightly different from version 11, but the logic remains the same. You need to find the active connection and go to its security properties.
⚠️ Important: To perform these steps, you must have administrator rights on your computer. Without them, the system will not allow you to view hidden security data.
After going to the wireless network properties, a small window with several tabs will open. You are interested in the tab SecurityThat's where it's stored. network security keyBy default, it's hidden by asterisks, but there's a checkbox next to it that unmasks the symbols.
Using Command Prompt to Recover Data
For more experienced users or in cases where the graphical interface does not work correctly, using the command line is ideal. The utility netsh (Network Shell) allows you to manage network configurations and display saved Wi-Fi profiles along with passwords in clear text.
This method is especially useful if you need to find the password for the network your laptop is currently connected to, or for a network that was previously listed but is currently inactive. The command line provides direct access to the system registries where this data is stored in encrypted form, but decodes it for display upon request.
To get started, run Command Prompt as administrator. Type cmd In the search box, right-click and select the appropriate option. Then enter the command to view a list of all saved profiles:
netsh wlan show profiles
The list will show the names of all networks your laptop has ever connected to. Find the required network name (SSID). Then, use the following command, substituting the name of your network:
netsh wlan show profile name="NAME" key=clear
Instead of NAME Enter the exact network name. In the report that opens, find the block Security parameters. Line Key content will contain the password you're looking for. If the field is empty or contains an error, the profile doesn't have permission to read the key or it's corrupted.
☑️ Check before using CMD
How to find the password on a MacBook (macOS)
Laptop owners Apple Store all passwords in the iCloud Keychain or the local system keychain. In newer versions of macOS (Ventura, Sonoma, and later), this process has become even easier thanks to the updated settings interface. Older versions require access to the Keychain utility.
If you have the latest macOS installed, go to System Preferences -> Wi-FiFind the desired network in the list of known networks or click the "More" button (gear or three dots). Next to the network name, you'll see an eye icon or a "Copy Password" button. After entering your Mac account password or Touch ID, the system will display a code.
For older versions of macOS, the procedure is as follows:
- 🔍 Open Spotlight Search (Cmd + Space) and type Keychain Access.
- 📂 In the left column, select the "System" or "iCloud" category.
- 🔎 Find the name of your Wi-Fi network in the list.
- 👁️ Double-click on the network name and check the "Show password" box.
The system will ask you to confirm the action by entering the computer's administrator password. The required character combination will then appear in the text field. This method works reliably because Keychain is a fundamental part of the Apple ecosystem's security.
What should I do if Keychain Access won't open?
If the utility doesn't respond, try restarting the "keychainaccess" process through Activity Monitor. Sometimes clearing the DNS cache with the command sudo dscacheutil -flushcache helps.
Viewing the password through the router's web interface
If none of the laptop methods work, the "gold standard" remains: accessing the router's settings. This method is universal and doesn't depend on the operating system. You can use any browser on a laptop connected to the router (even without internet access, as long as the local network is working).
To log in, you will need the default gateway address. This is usually 192.168.0.1 or 192.168.1.1The default address, login, and password are often found 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 (button Reset).
Below is a table of popular addresses for entering settings from various manufacturers:
| Manufacturer | Entrance address | Default login | Default password |
|---|---|---|---|
| TP-Link | tplinkwifi.net / 192.168.0.1 | admin | admin |
| ASUS | router.asus.com / 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Xiaomi | miwifi.com / 192.168.31.1 | admin | password from the sticker |
After authorization, look for the section Wireless, Wi-Fi or Wireless network. Inside the Security subsection there will be a field WPA Pre-Shared Key or "Password." You'll be able to view it in plain text or change it to a new one.
Alternative methods and PowerShell
In addition to the classic command line, in Windows 10 and 11 you can use a more powerful tool - PowerShellIt allows you to not only view but also export profiles. However, for simply viewing a password, the syntax is almost identical to CMD, since the same module is used. NetTCPIP.
Run PowerShell as administrator. The command to display all profiles and their passwords in a readable format looks like this:
(Get-NetConnectionProfile).Name
But to get the password itself, it is better to use the classic request through netsh within PowerShell, since direct cmdlets for extracting keys require complex manipulation of XML export files. You can export the profile to XML, where the password will be stored in the tag keyMaterial in encoded form (Base64), but its decoding requires additional scripts.
⚠️ Note: Router firmware interfaces and Windows versions are constantly updated. The layout of menu items may differ from those described. Always consult the official documentation from your equipment manufacturer.
Frequently Asked Questions (FAQ)
Is it possible to find out the Wi-Fi password if the laptop has never connected to it?
No, this is not possible using the laptop's software. To access a network the device hasn't connected to, you need physical access to the router or the password from another device that is already connected (for example, via a QR code on Android).
Is it safe to use third-party password recovery programs?
Most such programs (like WirelessKeyView) simply read the same system registries as the command line. However, downloading software from untrusted sources carries a risk of virus infection. The built-in tools of Windows and macOS are much safer.
What should I do if the "Key Content" field is empty?
This means your current user account doesn't have read permissions for this specific profile. Try logging in as an Administrator or running an elevated command prompt.
Will the router password be reset if I view it through the settings?
No, simply viewing the settings does not change the configuration. The password will only change if you manually enter new values in the field and click "Save" or "Apply."
In conclusion, it's worth noting that restoring access to your own network is a standard feature of operating systems. There's no need to panic or hire paid specialists for this service. All you need is physical access to a device that has previously successfully logged into the network.
Practice digital hygiene: use complex passwords, but store them in encrypted password managers to save time recovering them later. Regularly changing your access keys and updating your router firmware will protect your network from unauthorized access.