It's common to need to connect a new device to your home network but have long forgotten the Wi-Fi password. It often happens that one device, such as a laptop, is already connected to the router and successfully accesses the internet, but it's impossible to remember the login password on a phone or tablet. Fortunately, operating systems store this data in encrypted form, and with administrator rights, it can be easily recovered.
Restoring access doesn't require complex technical knowledge or installing third-party software, which often contains viruses. Built-in tools in Windows and macOS allow you to view the security keys of all networks the device has ever connected to. This is especially important for guest networks or offices where passwords are rarely changed but are often forgotten by employees.
In this article, we'll take a detailed look at several proven methods for retrieving lost data. We'll cover both the graphical settings interface and the command line for more advanced users. You'll learn how to quickly find the information you need, regardless of your operating system version.
Using the GUI in Windows 10 and 11
The easiest and most secure way to find the access key is to use the standard network connections menu. This method doesn't require complex commands and is suitable for most users. However, it's important to keep in mind that the interfaces Windows 10 And Windows 11 have slight visual differences, although the logic of actions remains identical.
First, you need to open your network settings. In modern versions of the operating system, you can do this from the Start menu, select the settings gear, or right-click the Wi-Fi icon in the system tray. We're interested in the section that controls the current connection status.
- 📡 Right-click on the wireless network icon in the lower right corner of the screen.
- 🔗 Select "Network & Internet settings" or "Open Network settings".
- 🛠 In the window that opens, find the "Network and Sharing Center" link (in Windows 10, it's often at the bottom; in Windows 11, you may need to go to "Advanced network settings").
- 💻 Click on the name of your active wireless network (blue text with a link).
After completing these steps, a small wireless network status window will open. It displays the connection speed, session duration, and signal strength. We're interested in the "Wireless Network Properties" button, which allows you to access security protocol settings.
In the properties window that opens, go to the "Security" tab. This is where the "Network Security Key" field is located, where the characters are hidden by dots. To see them, check the "Show entered characters" box. The system may ask you to confirm your administrator rights.
⚠️ Attention: If the "Show characters as you type" option is grayed out, you're logged in as a standard user. You'll need to log in as an administrator or ask the computer owner to do so.
This method only works for the network the laptop is currently connected to. If you need to find the password for a different, previously used network, you'll have to use the command line or other methods described below.
View passwords for all saved networks using the command line
The Windows Command Prompt provides more powerful tools for managing network connections. It can list all Wi-Fi networks ever saved on this computer and view their access keys. This is especially useful if your current network isn't working and you need to connect to an alternative access point.
To launch the utility, press the key combination Win + R, enter cmd and press Enter. To successfully execute commands, it's recommended to run the console as an administrator. While this isn't always strictly necessary for viewing profiles, it's critical for displaying keys.
The first step is to get a list of all saved profiles. Enter the following command and press Enter:
netsh wlan show profiles
The system will display a list of all user profiles. Find the exact name of the desired network in the list. Next, to find the password for this specific profile, use the command with the network name. The command syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
Instead of Network_Name Enter the exact name of your Wi-Fi network that you found in the previous step. If the name contains spaces, the quotation marks are required. After executing the command, scroll to the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext.
Alternative method via PowerShell
PowerShell is a more modern replacement for the classic command line and offers advanced features for system administrators. While CMD can be used for the simple task of viewing a password, PowerShell allows you to obtain information in a more structured format or export it for further analysis.
Launch PowerShell by searching for it in the Start menu. The command for viewing profiles is similar to that used in CMD, but the output syntax may differ depending on the version of the shell. The basic command for listing profiles is:
netsh wlan show profiles
To get detailed information with a security key, the same construction is used as in the command line, since netsh is a system utility independent of the shell. However, PowerShell allows you to filter the output, leaving only the desired password string, which is convenient when working with large numbers of networks.
Example command to display only the security key (requires knowing the exact profile name):
(netsh wlan show profile name="Name" key=clear) | Select-String"Key Contents"
This method is especially convenient if you plan to copy the password directly to the clipboard or save it to a text file for later transfer to other devices. It minimizes the risk of errors when manually reading characters.
Restoring access on macOS
Computer users Apple MacBook And iMac You may also need to retrieve a saved password. In macOS, all passwords, including Wi-Fi keys, are stored in a special secure database called Keychain Access. This is a centralized password repository, access to which is protected by biometrics or an account password.
To view your saved data, open Keychain Access. The easiest way to do this is through Spotlight search (click Cmd + Space and start typing the program name. In the list on the left, select the "System" or "iCloud" category, depending on where the password was saved, although most Wi-Fi passwords are stored in the system password.
Find the name of your wireless network in the list of names. Double-click it. A properties window will open, where you should check the "Show password" box. The system will immediately ask you to verify your identity: you will need to enter your computer administrator password or use Touch ID.
After successful authorization, the Wi-Fi network password will appear in the text field. This method works on all current versions of macOS, including Catalina, Big Sur, Monterey and newer. The Keychain interface has remained unchanged for many years, making this guide universal.
| operating system | Location of settings | Admin rights required | Complexity |
|---|---|---|---|
| Windows 10/11 | Network Settings -> Properties | Yes | Low |
| Windows (CMD) | Command line (netsh) | Yes | Average |
| macOS | Bunch of keys | Yes | Low |
| Linux (Ubuntu) | Network Settings / nmcli | Yes (sudo) | High |
Using third-party software and utilities
There are many programs designed specifically for recovering forgotten passwords. One of the most popular and time-tested utilities is WirelessKeyView from NirSoft. It requires no installation, is free for personal use, and displays all saved WEP/WPA keys on the system.
The main advantage of such programs is the ability to export all passwords to a single file or copy them to the clipboard. This is convenient when migrating to a new computer or when setting up a large number of devices in an office. However, using third-party software always carries certain risks.
- 🛡️ Download utilities only from the developers' official websites to avoid viruses.
- 🚫 Antivirus programs may react to programs like "HackTool" because they extract confidential data.
- 💾 Before starting, create a system restore point just in case.
When running such programs, your antivirus software may block them. This is normal, as the program is attempting to access system password storage. You will need to add the process to the exceptions list or temporarily disable protection if you are certain of the file's source.
⚠️ Attention: Don't use dubious "WiFi hackers" or programs with catchy names from unverified sources. Trojans that steal your personal data and banking passwords often disguise themselves as useful software. Use only reputable utilities like WirelessKeyView.
☑️ Check before using third-party software
What to do if none of the methods helped
In rare cases, neither the graphical interface nor the command line can display the password, or access to the system is restricted by security policies. This problem can also arise if you want to find the password for a network the computer has never connected to, or if the profile has been deleted.
In this case, the most secure method remains physical access to the router. If you're at home or in an office where you have access to the equipment, you can check the sticker on the device. Factory passwords are often listed there. If the password has been changed but you still have access to the router's web interface (for example, if you're connected via cable), go to the settings at 192.168.0.1 or 192.168.1.1 and check the wireless network section.
If you've lost access to your router and can't recover the password from your laptop, your last option is to reset the router to factory settings. To do this, press the button Reset on the device body. After this, the router will work with the factory password indicated on the sticker, but all your personal settings (network name, PPPoE connection type) will be reset, and you will need to reconfigure your internet connection.
Is it possible to find out the Wi-Fi password if the laptop is not connected to it?
No, the operating system only stores passwords for networks to which the device has successfully connected at least once. If the computer doesn't know the network, it's impossible to find the password through Windows or macOS settings. Access to the router or another device that is already connected is required.
Is it safe to save passwords in Windows?
Yes, it's safe if you have a password set for your Windows account. Your Wi-Fi password is stored encrypted and is only accessible after administrator authorization. However, if an attacker with administrator rights gains physical access to your laptop, they can extract this data.
Why do I get an "Access Denied" message in the command prompt?
This means that you have launched the command prompt without administrator rights. To run the command netsh wlan show profile... key=clear It is essential to run the console as administrator (right-click on the CMD icon -> "Run as administrator").
Where are Wi-Fi passwords stored in Windows 11?
In Windows 11, Microsoft has slightly changed the process. Passwords can now be viewed in the Settings app -> Network & Internet -> Advanced network settings -> Advanced sharing settings. There you'll find a list of known networks with a button to view the key.