Needing to connect a new device to a wireless network but forgetting the passkey is a common occurrence. We often connect automatically, and Windows stores this data in the background for years without requiring entry. However, the moment we need to manually enter the code on a smartphone or tablet, a dead end ensues.
Fortunately, the Windows operating system saves Wi-Fi password in your records if you've successfully connected to this access point at least once. You can restore it using standard tools without installing third-party software. In this article, we'll cover several proven methods: from simply viewing the interface to using the command line for advanced users.
It's important to understand that you can only find the key for the network your computer is currently connected to or has previously connected to. If your router is new and hasn't been reset, try checking the sticker on the device, which often contains the default login information.
Viewing the password through network settings in Windows
The easiest and safest way to find a forgotten code is to use the operating system's graphical interface. This method works on all current versions of Windows, including 10 and 11, although the paths to the settings may vary slightly. You don't need administrator rights if you're already logged in with your account.
To begin, open the Network Control Panel. In Windows 10 and 11, you can do this by right-clicking the network icon in the system tray and selecting the appropriate option, or via Settings → Network & InternetYour goal is to find an active connection and go to its properties.
In the window that opens, you are interested in the button Wireless Network Properties or a similar menu item. Once you've selected the "Security" tab, you'll see a field labeled "Network Security Key." The symbols are initially hidden behind asterisks or dots to protect them from prying eyes.
To see the actual code, simply check the box next to "Show entered characters." The system may ask you to confirm your administrator rights. After that, the characters will appear in the field, which you can copy or rewrite.
Sometimes the interface can become unstable, especially with older driver versions. In this case, it's best to use the alternative command line method, which is often more reliable and faster.
Using the command line to recover the key
The Command Prompt (CMD) is a powerful tool for managing network connections in Windows. It not only displays the current password but also displays a list of all saved networks the computer has ever connected to. This is especially useful if you want to know the password for a network you're not currently connected to.
To launch the command line, press the key combination Win + R, enter cmd and press Enter. It's recommended to run the terminal as administrator to execute network commands, although this may not be necessary for viewing some data.
The first step is to enter a command that will list all Wi-Fi profiles saved on the device. Type the following text and press Enter:
netsh wlan show profiles
Find your network name in the list. Note that the name must match exactly, including case and spaces. Next, use the command to display a specific profile. The syntax is as follows:
netsh wlan show profile name="Network_Name" key=clear
Instead of Network_Name Enter the exact name of your router. In the report that opens, look for the "Security settings" section. There you'll find the "Key Content" line, which contains the password you're looking for in clear text.
What should I do if I get the "Network not found" error?
This error occurs if the computer has never connected to this access point or the profile has been deleted. In this case, it's impossible to find the password through this PC; you'll have to use other devices or reset the router.
This method is great because it's versatile and works even when the Windows graphical interface is glitchy or frozen. It also allows you to quickly copy the result if you use the console clipboard.
How to find out the password through the router's web interface
If your computer doesn't remember the password or you want to change it for all devices at once, the best option is to access the router's settings. To do this, the device must be connected to the network, either via cable or Wi-Fi. The login address is usually located on a sticker on the bottom of the device (often this is 192.168.0.1 or 192.168.1.1).
Enter the IP address into the address bar of any browser. The system will ask for your username and password to access the admin panel. If you haven't changed them, try the default combinations: admin/admin or admin/passwordThis information can also be found on the device label.
Interfaces from different manufacturers (TP-Link, ASUS, D-Link, Keenetic) differ, but the logic is the same. You need to find the section related to the wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN."
Within this section, look for the "Security" or "Wireless Network Settings" subsection. There you'll find a "Password" (Passphrase, Pre-shared Key) field. Some router models display the password immediately, while others hide it behind asterisks, but there's a "Show" button or an eye icon next to it.
⚠️ Please note: If you change the password in your router settings, all connected devices will lose internet connection. You will have to re-enter the new code on each smartphone, tablet, and laptop.
The web interface provides full control not only over the password, but also over the encryption type. It is recommended to use the standard WPA2-PSK or WPA3, as they provide maximum protection against burglary.
Comparison of methods for obtaining access data
The method you choose to restore access depends on your situation: whether you're currently connected to the network, whether you have physical access to the router, and the permissions of your Windows account. Below is a table to help you quickly navigate this.
| Method | Necessary rights | Complexity | Available without network connection |
|---|---|---|---|
| Windows settings | User | Low | No |
| Command line | Administrator | Average | Yes (if the profile is saved) |
| Router web interface | Router admin | Average | Yes |
| Third-party software | Administrator | Low | No |
As the table shows, the command line is the most flexible tool, providing information even about networks that are currently inactive. However, for beginners, the Windows graphical interface remains the most intuitive option.
We do not recommend using third-party programs for security reasons, as they require full system access and may contain malicious code. Windows' built-in tools are sufficient for 99% of tasks.
What to do if none of the methods helped
There are times when Windows won't display the password, the command prompt returns an access error, and you can't log into the router because you've forgotten the administrator password. In these situations, the only drastic, yet effective, solution is to reset the router to factory settings.
On the body of most devices there is a small hole with the inscription Reset or DefaultTo activate the reset, press it with a thin object (paperclip, toothpick) and hold the button for about 10-15 seconds until the indicators blink simultaneously.
After this procedure, the router will return to its out-of-the-box state. The Wi-Fi password will be the one on the sticker underneath. However, keep in mind that all your personal settings (network name, PPPoE connection type, if applicable) will be deleted.
⚠️ Important: Before resetting, make sure you have a contract with your provider or access to your personal account to restore your internet settings (PPPoE/L2TP login and password), if they are required for connection.
After resetting, setting up your router will take a few minutes. You'll need to re-enter your ISP credentials and set a new, secure password for your wireless network. This is a great time to update your security if you haven't done so in a while.
Wi-Fi Security and Protection
Knowing how to view your password is useful not only for restoring access but also for auditing your network's security. Regularly changing your access key prevents unauthorized connections from neighbors who might use your channel for illegal activities or simply throttle your speed.
When creating a new password, avoid simple combinations like 12345678 or phone number. Use a mix of upper- and lower-case letters, numbers, and special characters. The password should be at least 8-10 characters long, although modern standards recommend 12 or more.
☑️ Wi-Fi Security Checklist
It's also worth paying attention to the WPS function. It allows you to connect without entering a password, simply by pressing a button on the router or in the interface. However, this technology is vulnerable, and it's best to disable it in the router settings if you don't use it regularly.
Remember that security is a process, not a one-time action. Check the list of connected clients in the router interface at least once a month to ensure there are no unauthorized devices on your network.
Is it possible to view a Wi-Fi password if the computer has never connected to this network?
No, this can't be done using a computer. Windows only stores keys that have been successfully entered and used to connect. If the device doesn't "know" the network, it has no information about its password. In this case, the only solution is to look at the router's sticker, access its settings, or reset it to factory settings.
Why does the command line say "Access Denied"?
This error means you ran the command prompt without administrator rights. To run network commands netsh Elevated privileges are required. Right-click "Command Prompt" or "PowerShell" and select "Run as administrator."
Where can I find my password if I have a Mac (macOS)?
On Apple computers, the password is stored in Keychain Access. Open the app via Spotlight search, find your network name in the list, double-click it, and check the "Show password" box. The system will prompt you for the Mac user account password.
Are password recovery programs safe to use?
Using third-party software (WirelessKeyView, Wi-Fi Password Revealer, etc.) carries risks. Such programs require access to system security files, which is often blocked by antivirus software. Furthermore, by downloading questionable software, you risk infecting your computer with viruses. It's better to use Windows' built-in tools.
What should I do if I forgot my router admin password?
If standard admin/admin they don't work and you changed the password earlier but forgot it, the only option left is to completely reset the router using the button ResetFor security reasons, it's impossible to recover a forgotten administrator password at home without losing your settings.