Needing to connect a new device to a wireless network but losing or forgetting the password is one of the most common situations in the world of home technology. Fortunately, the operating system Windows By default, it saves access codes for all networks your computer has ever connected to, making it easy to reconnect without having to constantly enter data. If you're looking for a way to recover this information, you won't need complex software or hacking skills.
There are several proven methods for quickly finding a forgotten password, ranging from simple graphical interface settings to advanced command line options. In this article, we'll cover each method in detail so you can choose the most appropriate one for your operating system version. It's important to understand that most of the steps described require administrator rights on the current device.
Before you begin manipulating system files or router settings, it's worth clarifying that all the methods described below only work if the computer has previously successfully connected to the access point. Windows does not store passwords for networks to which the device has never connected, so hacking other people's networks using these methods is impossible. We will consider standard system tools that are safe and do not violate the integrity of the software.
Using the Windows 10 and 11 GUI
The simplest and most accessible way to retrieve a saved password is to use the operating system's default network settings. This method doesn't require complex commands and is suitable even for inexperienced users who are wary of accidentally changing critical system settings. In modern versions of Windows 10 and 11, the settings interface has become more user-friendly, but the path to the coveted password is still hidden in several menu levels.
To get started, you need to open the Start menu and go to the Settings section, which is indicated by the gear icon, or simply press a key combination Win + IIn the window that opens, select the "Network and Internet" category, then find the "Wi-Fi" tab in the left or center menu. Here, you'll need to find the "Configure adapter settings" or "Advanced network settings" link, depending on your OS build version.
Once you've opened the Network Connections window, find your wireless connection icon, right-click it, and select "Status." The dialog box that opens will contain a "Wireless Network Properties" button. Clicking this will open a menu with tabs. The tab you're interested in is the "Security" tab, where the "Network Security Key" field will show the required symbols hidden by asterisks.
- 🔍 Click the "Show entered characters" checkbox to see the code in plain text.
- ⚙️ Make sure the "Authentication Method" field is set to the value that matches your router, usually WPA2-Personal.
- 📋 Copy the password or rewrite it, observing the letter case and special characters.
It's worth noting that on some corporate networks or when using specific security profiles, the option to display symbols may be unavailable (grayed out). In this case, the system blocks key viewing for organizational security policy reasons. If you encounter this on a home PC, it may indicate a corrupted network profile, which will need to be deleted and recreated.
Finding a password via the command line
For those who prefer speed and precision, or in cases where the graphical interface does not work correctly, using the command line is the ideal solution. CMDThis tool allows you to interact directly with Windows network services, retrieving saved profiles and their settings. The method is universal and works on virtually all versions of Windows, from XP to the latest builds of Windows 11.
To launch the command prompt with the required privileges, right-click the Start menu and select "Windows PowerShell (Administrator)" or "Command Prompt (Administrator)." It's important to launch the terminal as an administrator, otherwise the system will return an access error when attempting to read saved data. Once the black terminal window opens, you're ready to enter commands.
The first step is to get a list of all networks your computer has ever connected to. To do this, enter the command netsh wlan show profiles and press Enter. The system will display a list of all saved profiles and their names. Find the name of the network whose password you want to find out in the list, and remember its exact spelling.
netsh wlan show profile name="Your_Network_Name" key=clear
Replace "Your_Network_Name" with the actual name of your Wi-Fi network, which you saw in the list earlier. If the name contains spaces, be sure to enclose it in quotation marks, as shown in the example above. After running this command, scroll up to the "Security settings" section. There, in the "Key Content" line, the password you're looking for will be displayed in clear text.
This method is especially useful when you need to quickly find out the password for a network to which the computer is not currently connected, but whose profile is saved in memory. The command line also allows you to export the network configuration to an XML file, where the password can be stored in encoded form, but for simple viewing, a command with the switch is sufficient. key=clear.
Viewing the key through the router settings
If the computer you're trying to find the password from has never been connected to the network or has been reinstalled, the most reliable source of truth is the router itself. To do this, you'll need access to the device's web interface, usually through a browser. This method requires you to be connected to the router via either a cable or Wi-Fi (even without internet access).
Open any browser and enter your router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1, however, the exact address may vary depending on the manufacturer. This information is often found on a sticker on the bottom of the device, next to the username and password for accessing the admin panel. If the standard addresses don't work, try the command ipconfig in the command line and find the value "Default gateway".
After entering the address, you'll be asked to enter your username and password to access the management system. If you've never changed these details, they're also listed on the device's sticker (often admin/admin). Once inside the interface, look for a section labeled "Wireless," "Wi-Fi," "Wireless Network," or "WLAN." Depending on the router model, the password may be hidden behind asterisks, but there's often a "Show" button next to it.
| Router manufacturer | Standard IP address | Path to Wi-Fi settings |
|---|---|---|
| TP-Link | 192.168.0.1 | Wireless -> Wireless Security |
| Asus | 192.168.1.1 | Additional settings -> Wireless network |
| D-Link | 192.168.0.1 | Wi-Fi -> Security Settings |
| Keenetic | 192.168.1.1 | My Networks and Wi-Fi -> Home Network |
Router interfaces are constantly updated, and the layout of menu items may change with the release of new firmware versions.
⚠️ Please note: If you change the password in your router settings, all connected devices will lose internet connection and will require you to re-enter the new code.Be careful when changing security settings to avoid blocking access to your own network.
Using PowerShell to Extract Data
PowerShell is a more powerful alternative to the classic command line, offering advanced system management capabilities. While the standard CMD is sufficient for viewing passwords, some users prefer PowerShell for its automation capabilities and more flexible output formatting. The operating principle is similar, but the syntax may differ.
Launch PowerShell as administrator by searching for it in the Start menu. To list all profiles, enter the command netsh wlan show profilesTo get information about a specific network, use the same syntax as in CMD, as the command netsh is systemic and works the same in both shells.
However, PowerShell allows you to create scripts that can automatically collect passwords from all saved networks and display them in a convenient list. This can be useful for system administrators, but for occasional home use, a simple command is sufficient. PowerShell's main advantage is the ability to copy text from the terminal window by simply selecting it, which isn't always convenient in older versions of CMD.
Is it possible to recover a password if Windows has been reinstalled?
After a clean installation of the operating system, all saved Wi-Fi profiles are deleted along with the system files. In this case, it is no longer possible to find the password through Windows settings, and the only option is physical access to the router or another device that remembers the password.
If you plan to use this method frequently, you can create a simple batch file with the password output command to avoid having to manually enter it each time. However, keep such files in a secure location, as they contain sensitive information about your network in clear text.
Third-party password recovery utilities
There are many specialized utilities on the software market designed to recover and manage saved Wi-Fi passwords. Programs like WirelessKeyView from NirSoft or WiFi Password Decryptor They can instantly extract all keys from the Windows registry and display them in a convenient list. Using such software is justified if the system's default tools fail for some reason.
The main advantage of third-party utilities is speed and clarity. You don't need to navigate menus or enter commands; the program automatically finds all profiles and displays passwords with a single click. However, be extremely careful when downloading such programs: antivirus programs often classify them as potentially unwanted software (HackTools), as their functionality can be exploited by hackers.
- 🛡️ Download utilities only from the developers' official websites to avoid viruses.
- 💾 The programs do not require installation (portable), which is convenient for use from a flash drive.
- ⚠️ Your antivirus may block the launch, requiring you to add an exception.
Using third-party software carries certain risks, especially if you download the program from an unverified source.
⚠️ Warning: Many "free" password hacking or viewing programs may contain hidden miners or Trojans that steal data. Use only trusted tools from reputable developers.For most users, standard Windows tools will be sufficient.
☑️ Check before using utilities
Restoring access via mobile devices
It often happens that a computer forgets the password, but it's saved on a smartphone that regularly connects to the network. Android device owners are in luck: starting with Android 10, the system allows you to view saved Wi-Fi passwords directly in the settings. To do this, go to "Settings" -> "Wi-Fi," select the desired network, and tap "Share" or the QR code icon.
After verifying your identity (fingerprint or PIN), a QR code for connection will appear on the screen, followed by the network's text password. On Apple devices (iOS), this changed with the release of iOS 16: now, in the Wi-Fi settings menu, tapping the "i" icon next to the network name reveals a "Password" field, which can be accessed via FaceID or TouchID.
This method is especially convenient when you need to connect a new device and don't want to manually enter a long password with characters. Simply scan the QR code with your new device's camera, and it will automatically connect to the network. This eliminates the need to search for notes or delve into the router's settings.
Frequently Asked Questions (FAQ)
Where is the Wi-Fi password physically located if the router is new?
On a new router, the factory password (Key/Password) is always located on a sticker attached to the bottom or back of the device. Look for the "WPA Key," "Wireless Password," or "Wi-Fi Password" field.
Why does the command line say "Network not found in profile"?
This means you entered the network name incorrectly or the computer has never connected to this access point. Check the exact network name with the command netsh wlan show profiles and make sure it matches what you entered in the search command.
Is it possible to find out a neighbor's Wi-Fi password using any methods?
No, the methods described only work with profiles already saved on your computer. If you've never connected to your neighbor's network and don't know its password, the system won't be able to display it, as it doesn't store this information.
What should I do if the "Network Security Key" field is grayed out and inactive?
This often happens on corporate networks or when using certain encryption protocols. In this case, the only solution is to reset the network settings or log in to the router's admin panel, if you have access to it.
Will my router password be reset if I reset Windows settings?
No, the password is stored in the router's memory. Resetting Windows settings will only delete the saved profile on your computer, but the router itself will continue to operate with its previous security settings.