It's a common situation when you need to connect a new device to the network but have forgotten the access key. We often save the password on one device and use the internet successfully, but when we try to enter the data on new laptop Or the memory on your tablet suddenly fails. Fortunately, the Windows operating system stores this data in encrypted form, and if you have physical access to a computer that's already connected to the network, recovering it won't be difficult.
There are several proven methods for retrieving saved keys, from built-in interface tools to more advanced console methods. You don't need to be an expert in the field. IT securityTo complete this task, follow the instructions carefully and proceed consistently to avoid confusion in the system settings.
It's important to understand that all the methods described only work if your computer has previously connected to the network. If the device has never connected to the router, the key can only be found through the router's administrative panel or by asking the owner. Below, we'll cover all available options, from the simplest to the most complex.
Using the Windows graphical interface
The simplest and most accessible method, which doesn't require entering complex commands, is hidden in the operating system's default settings. This method is ideal for users who prefer a visual interface and are wary of making mistakes when entering text commands in the console. You'll only need a few mouse clicks to access hidden security settings.
To get started, open the Start menu and go to "Settings" (the gear icon). Next, select "Network and Internet," then find "Network and Sharing Center," or simply click the Wi-Fi icon in the system tray and select "Properties" for your active network. In the window that opens, click the name of your wireless connection to view the connection status.
In the new dialog box, find the "Wireless Network Properties" button and click on it. Go to the "Security" tab. This is where the network security key, which is hidden by asterisks by default. To see it, check the box next to "Show entered characters." After doing so, the hidden code will become visible in the text field.
- 🔑 Right-click on the Wi-Fi icon in the tray.
- 🔑 Select "Open Network & Internet Settings".
- 🔑 Go to Network and Sharing Center.
- 🔑 Click on the name of the active network and select "Properties".
⚠️ Note: If the Security tab is missing or the Properties button is grayed out, it may mean that your account does not have administrator rights or the network profile is corrupted.
It's worth noting that this method only works for the network you're currently connected to or for profiles previously saved in the system. If you're trying to remember the password for a network you connected to a month ago but are now in a different location, this method won't help directly, but the data may still be saved in the system if the profile hasn't been deleted.
Restoring access via the command line
For those who aren't afraid of a black screen with a blinking cursor, the command line offers a quick and reliable way to retrieve information about saved networks. This method is considered more professional, as it allows you to not only view the password for the current network but also list all Wi-Fi networks ever connected to, along with their access keys. This is especially useful if you need to find information for a guest network you're not currently connected to.
To get started, run Command Prompt as administrator. Click Win + X and select "Windows PowerShell (Admin)" or "Command Prompt (Admin)". First, you need to get a list of all saved profiles. Enter the command netsh wlan show profiles and press Enter. You will see a list of all networks your computer has ever connected to.
Find the desired network name (SSID) in the list. Then use the command to display the details of a specific profile. The syntax is as follows: netsh wlan show profile name="Network_Name" key=clearReplace "Network_Name" with the exact name of your router. In the "Security settings" section, find the "Key Content" line—the password you're looking for will be listed next to it.
netsh wlan show profile name="HomeWiFi" key=clear
If the network name contains spaces, be sure to enclose it in quotation marks, otherwise the system will return an error. This method is universal and works on all modern versions of Windows, starting with Windows 7. It also allows you to quickly copy the password by selecting it with the mouse in the console window, which is convenient for transferring to other devices.
- 🖥️ Run CMD as administrator.
- 🖥️ Enter
netsh wlan show profilesfor the list of networks. - 🖥️ Use the command
key=clearto view the key. - 🖥️ Copy the value from the "Key Content" line.
What to do if the command doesn't work?
If the system writes “The WLAN AutoConfig service is not running”, you need to open services (services.msc), find this service and start it, setting the startup type to “Automatic”.
Viewing the password through the router settings
If your computer isn't connected to the network or you want to find out the password for a new device, the most reliable source of truth is the router itself. The router's administrative panel contains all wireless network settings, including the encryption type and the current access key. To do this, you'll need a cable connection (Ethernet) or an existing Wi-Fi connection to the router.
Open any browser and enter the 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 device model. The login details (username and password) are usually located on a sticker on the bottom of the router. If you've changed them previously and forgot them, you may need to reset the device to factory settings.
After logging in, find the section responsible for your wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" or "Security Settings" subsection. The current key is displayed there in the "PSK Password," "WPA Pre-Shared Key," or "Password" field. You can simply copy it or change it to a new, more complex one.
| Router brand | Standard IP | Default login | Default password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Xiaomi | 192.168.31.1 | admin | indicated on the sticker |
⚠️ Note: Router interfaces are constantly being updated. The menu layout may differ from what's described. Look for sections labeled "Wireless," "Security," or "WLAN."
This method is good because it gives you access to the "ultimate truth." Even if the old password has been changed and saved on the computer, but the device somehow connected (or the data was cached), the router will display the current key needed to connect new devices.
Using third-party programs
There are many specialized utilities designed to manage wireless connections and recover passwords. Programs such as WirelessKeyView from NirSoft or WiFi Password Decoder, can automatically read profiles saved in the system and display keys in a convenient format. They eliminate the need for the user to delve into settings or enter commands.
However, using third-party software requires extreme caution. Such utilities should only be downloaded from the developers' official websites, as there are many counterfeit programs online that contain viruses or miners. Antivirus programs may detect such tools as a threat (hacktool), as their functionality can be used by attackers to steal data.
The advantage of such programs is the ability to bulk export passwords. You can save a list of all networks and keys to a text, HTML, or XML file, which is convenient for backing up settings before reinstalling Windows. Simply run the program as an administrator, and it will instantly display all saved SSIDs and their corresponding passwords.
- 🛡️ Download utilities only from official resources.
- 🛡️ Add the program to your antivirus exclusions if it detects a false positive.
- 🛡️ Use the export function to create a password backup.
- 🛡️ Delete the program after use for security purposes.
Please note that these utilities require administrator privileges because they access protected Windows system storage. If you don't have administrator privileges on your computer, this method, like the previous ones, will not work.
Network settings reset method
In some cases, when none of the above methods work due to system errors or corrupted profiles, you can try resetting your network settings. This is a drastic measure that will delete all saved Wi-Fi profiles and reset your network adapters to factory settings. After this, your computer will behave as if it were new, and when you try to connect to a known network, the system may prompt you for the password again, but this won't help you "find" the password if it's not saved.
However, if your goal is to clear the list of networks and start from scratch so you can re-enter the correct password (which you might find on the router's sticker), this option is suitable. Go to "Settings" → "Network & Internet" → "Advanced network settings" → "Network reset." Click "Reset now."
The computer will reboot in 5 minutes. All saved passwords will be deleted. This method is useful if the system is glitching and doesn't display the saved key, giving access errors. After the reset, you can reconnect by entering the correct password, which you can find on the router itself or ask your ISP.
☑️ Preparing for a network reset
You should not use this method if your computer has complex static IP addresses or VPN connections configured, as you will have to reconfigure them manually.
Wi-Fi Security and Protection
Understanding how easy it is to retrieve a password should prompt network owners to think about security. If an unauthorized person gains physical access to your computer, they can easily steal your network key. Therefore, it's important to use complex passwords that are difficult to brute-force, even if they are stored on the system.
It is recommended to use the encryption standard WPA2-PSK or more modern WPA3Older WEP and WPA standards are vulnerable and can be cracked in minutes using specialized software. It's also a good idea to create a guest network for visitors to prevent them from accessing your primary devices and files on your local network.
Changing your password regularly (for example, every six months) also improves security. If you suspect that someone has accessed your key, change it immediately in your router settings. All connected devices will be disconnected, and you'll have to re-enter the new password on each one.
Remember, your network security is your primary responsibility. Simple precautions can protect your personal data from leaks.
Frequently Asked Questions (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, it's impossible to find the password directly on the computer, as it's not stored anywhere. In this case, the only help is the sticker on the router, the agreement with the provider, or logging into the router's administrative panel via cable.
Why does the command prompt say "Access Denied"?
You most likely ran the command prompt without administrator rights. Right-click "Command Prompt" or "PowerShell" and select "Run as administrator."
Are password recovery programs safe to use?
Using trusted utilities from reputable developers (such as NirSoft) is safe if downloaded from the official website. However, antivirus programs may flag them as a threat due to their functionality accessing system data. Be careful with "crackers" downloaded from untrusted sources.
What should I do if I forgot my router admin password?
If the default password (indicated on the sticker) doesn't work and you've changed it but forgotten it, you'll need to reset the router to factory settings (press the Reset button on the router). This will restore all settings, including the network name and Wi-Fi password, to factory defaults.
Does this method work on Windows XP or Vista?
The operating principle is similar, but the menu interface may differ. Commands in the command line (netsh) work similarly on all versions of Windows, starting with XP, but they also need to be run as administrator.