It's quite common to need to connect a new device to a wireless network but lose or forget the password. Users often forget the password they entered during initial setup or write it down somewhere they can't find it. In such cases, the question arises of how to find the WiFi password through the console or system utilities, without having to reset the router to factory settings.
Fortunately, the operating system Windows Stores data about previously connected networks in its memory. This allows you to retrieve the necessary information using standard tools if you've ever connected a computer to this network. Wi-FiHowever, if the device has never connected to the router, or you want to find the access key for a guest device, the methods will differ. In this article, we'll discuss legal ways to restore access via the command line and the router's web interface.
It's worth noting that hacking into someone else's network without the owner's permission is illegal. All methods described below are intended solely for restoring access to own networks or networks whose administrator has granted you the appropriate rights. We'll cover the technical details of working with encryption protocols and hardware management interfaces.
Password recovery via the Windows command line
The fastest way to find out a saved password is to use the built-in utility netshThis method works on all modern versions of Windows, starting with Vista, and doesn't require any additional software. You will need administrator privileges, as the request concerns system network security settings.
First, you need to open the command prompt. Press the key combination Win + R, enter cmd and press Enter, or search for "Command Prompt" in the Start menu and select "Run as administrator." Once a black terminal window opens, enter the following command to view all saved profiles:
netsh wlan show profiles
The system will display a list of all networks the computer has ever connected to. Find your network name (SSID) in the list. If the list is large, you can directly request information about a specific profile. To do this, use the command, substituting the name of your network:
netsh wlan show profile name="Network_Name" key=clear
In the command output, scroll down to the section Security settings (Security settings). We are interested in the line Key Content (Key Contents). The value to the right of this parameter is your password. If you see asterisks or a blank field instead of a password, the system hasn't stored the key in plaintext, and this method won't work.
- 🔍 Make sure the network name in the command is enclosed in quotation marks if it contains spaces.
- 🔍 The command is case-sensitive, so you must enter the network name exactly as it appears in the list.
- 🔍 This method only works if the computer has previously successfully connected to this access point.
⚠️ Warning: If you are using a corporate computer, network administrators may block the command from running.
netshor hide access keys for security purposes.
Viewing the access key through the graphical interface
It's not always convenient to fiddle with the console, especially if you're unsure of the commands you're entering. Windows provides a simpler, visual way to view the saved password through the standard network settings. This method is suitable for users who prefer a graphical interface and want to avoid the risk of command syntax errors.
Open Control Panel and go to Network and Internet, then select Network and Sharing Center. On the left side of the window, find the link Change adapter settings. Here you will see a list of all network connections. Find the icon Wireless network, right-click on it and select "Status".
In the window that opens, click "Wireless Network Properties." Switch to the "Security" tab. You'll see the "Network Security Key" field, where the characters are hidden by dots. To display the password, simply check the box next to it. Show entered charactersThe system may ask you to confirm administrator rights.
This method is good for its clarity, but it has a limitation: you can only see the password for the network to which the computer is connected. at the moment, or from networks whose profiles are active in the system. If the desired network isn't in the list of active connections, you'll have to use the console or reset the router.
Login to the router's web interface to view 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 way is to access the router's settings. To do this, you'll need to connect your computer to the router via LAN cable (Ethernet) or connect via WiFi if the password for the guest network or WPS is known.
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.1The exact address is usually indicated on a sticker on the bottom of the device. You will need to enter your username and password to access the admin panel. By default, this is often admin/admin or admin/password, if you haven't changed them before.
After authorization, the interface may look different depending on the model (TP-Link, Asus, D-Link, Keenetic). You need to find the section related to wireless networking. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for a subsection called "Security" or "Wireless Network Settings."
The "Password, Passphrase, or Pre-shared Key" field will display the current access key. If the field is hidden by asterisks, there's often a "Show" button or an eye icon next to it. In some older router models, the password may be permanently hidden, and the only option is to change it.
| Manufacturer | Menu path (approximate) | Password field name | Standard IP |
|---|---|---|---|
| TP-Link | Wireless -> Wireless Security | Wireless Password | 192.168.0.1 |
| Asus | More -> Wireless Network | Authentication method (key) | 192.168.1.1 |
| D-Link | Wi-Fi -> Security Settings | PSK encryption key | 192.168.0.1 |
| Keenetic | My Networks and Wi-Fi -> Home Network | Network password | 192.168.1.1 |
| Tenda | Wireless Settings -> Wireless Security | Wireless Password | 192.168.0.1 |
☑️ Check before logging into the router
Using WPS to connect without entering a password
Technology WPS (Wi-Fi Protected Setup) allows you to connect devices to the network without entering a long password. This is convenient if you've forgotten the key but have physical access to the router. This method works by pressing a button on the router or entering a PIN, which is often found on a sticker on the device.
On a Windows 10 or 11 computer, when selecting a network from the list of available connections, you may see the message "You can also connect by pressing the button on the router." If you press this button within two minutes of activating WPS on the router, the connection will be established automatically, and the system will save the password.
However, you should be careful. The WPS protocol is considered vulnerable, and many security experts recommend disabling it in your router settings if you don't use it regularly. Attackers can exploit WPS vulnerabilities to brute-force your PIN and gain access to your network.
- 🔒 The WPS button can be combined with the Reset button, so press it briefly (1-2 seconds).
- 🔒 On some routers, the WPS function is disabled by default and must be activated in the menu.
- 🔒 Android mobile devices also support connection via WPS (button or QR code).
⚠️ Note: Router interfaces are constantly being updated. Menu locations and item names may differ from those described. If you cannot find the setting you need, please refer to the official documentation from the manufacturer of your model.
Resetting the router to factory settings
If none of the above methods help (the password has been changed and is unknown, it's not saved in the system, and access to the admin panel is blocked), the last resort is a full reset. This will return the router to the state it was in when you purchased it. After the reset, all provider settings (connection type, PPPoE/L2TP login and password) will be deleted.
To perform a reset, find a small hole on the device body with the inscription Reset or DefaultPlug in the router. Take a paperclip or a thin needle, press the button inside the hole, and hold it for about 10-15 seconds until the lights flash simultaneously. This indicates a reboot.
After rebooting, the router will create an open network (without a password) or a network with the password indicated on the sticker (Wi-Fi Key). Once connected, you can access the web interface at the default address using the default username and password. You'll then need to reconfigure your internet connection according to your provider's instructions.
What should I do if the Internet doesn't work after a reset?
You'll need your ISP contract. Find the connection type (PPPoE, PPTP, L2TP, or Dynamic IP) and authorization information in the document. Without these settings, the router won't be able to connect to the global network, even if WiFi is working.
Security measures and network protection
Understanding how easily stored passwords can be accessed highlights the importance of properly configuring your network security. Using weak passwords or outdated encryption protocols (such as WEP) makes your network vulnerable to outsiders.
It is recommended to use an encryption protocol WPA2-PSK or WPA3, if your hardware supports it. The password should be complex: contain mixed-case letters, numbers, and special characters, and be at least 12 characters long. This will protect against brute-force attacks.
It's also a good idea to regularly update your router's firmware. Manufacturers release updates that patch security holes that could allow hackers to access the device's console or intercept traffic. Don't ignore notifications about the availability of a new firmware version.
Frequently Asked Questions (FAQ)
Is it possible to find out the WiFi password if I have never connected to this network?
No, it is technically impossible to find out the password for a network to which your device has never connected and for which data is not stored in the system, without using specialized equipment to intercept traffic (which is illegal) or accessing the router's admin panel.
What should I do if the netsh command says "Network out of range"?
This error means the profile name contains spaces or special characters, and the command can't process it correctly. Try enclosing the network name in double quotes, for example: netsh wlan show profile name="My Home WiFi" key=clear.
Where can I find the WPS PIN if it's worn off the sticker?
The PIN can often be found in the router's web interface under the WPS settings. It may also be printed on a separate card included in the package. If the PIN has been changed and forgotten, a factory reset is the only solution.
Are password recovery programs safe to use?
Most of these programs simply read data already in the Windows registry (similar to the netsh command). However, downloading software from untrusted sources puts you at risk of infecting your computer with viruses. It's better to use the system's built-in tools.
Can my ISP tell me my WiFi password?
No, your ISP provides your internet access. The user configures the wireless network settings (network name and password) on their router. The ISP doesn't store this data unless you use the router manufacturer's cloud services to back up your settings.