Forgot your home Wi-Fi password and there's no sticker with the connection information on your router? Or do you need to connect a new gadget but can't be bothered to look for the access code? In fact, your wireless network password is already saved on your computer—it can be easily retrieved through system settings. Windows or the command line. In this article, we'll look at all current methodsHow to view your Wi-Fi password on a PC, including methods for non-administrator users and alternative solutions for complex cases.
It is important to understand: the password is extracted only from those networks to which the computer is connected. I've already connected beforeIf you've never logged into this network from this device, system tools won't help—you'll have to access your router settings or reset it. Also, keep in mind that some methods require administrator rights, and in corporate networks, passwords may be hidden by security policies.
We have tested all the methods described below on Windows 10 And Windows 11 (versions 22H2 and 23H2, respectively). The instructions are relevant for most modern laptops and PCs, from budget models Lenovo IdeaPad to game builds on ASUS ROGIf your case is specific (for example, the computer is on a domain or a VPN is used), please pay attention to section on special situations.
1. Method via Windows Settings (the easiest)
This is a basic method that works on all versions. Windows Starting with 8.1, it doesn't require any command knowledge or administrator rights (assuming you're already connected to the network as a user with the appropriate permissions). Here are the step-by-step instructions:
- Open Settings - click
Win + Ior click on the gear icon in the menuStart. - Go to the section
Network and Internet→Wi-Fi. - Click
Managing known networks— all saved connections will be displayed here. - Select the desired network and click
Properties. - Scroll down to the block
Security parametersand pressShow symbolsnext to the fieldNetwork security key.
Done! The password will be displayed in text form. If the button Show symbols is inactive, then your account does not have viewing rights. In this case, try command line method or log in as administrator.
☑️ What to check before viewing a password
⚠️ Attention: In some builds Windows 10 LTSC or corporate versions section Managing known networks may be missing. This is due to company security policies—in this case, please contact your IT department.
2. View the password via the command line (CMD)
If the graphical interface is not available or you prefer to work with the console, you can extract the password via Command lineThis method is universal and works even on older versions of the system. Here's how to do it:
- Open
Command lineas administrator:- Click
Win + Xand selectTerminal (Administrator)orCommand Prompt (Administrator). - IN Windows 11 You can use the search: enter
cmd, then pressRun as administrator.
- Click
netsh wlan show profiles
In the list, find the name of the desired network (for example, TP-Link_5G).
netsh wlan show profile name="NETWORK_NAME" key=clear
Replace NETWORK_NAME to the actual name (for example, netsh wlan show profile name="KEENETIC-123" key=clear).
Key content - this is the password.This method is suitable for all versions of Windows, including Windows 7 (if it's still in use). The main advantage is speed and lack of dependence on a graphical interface. However, if the network is configured via WPS or uses enterprise authentication (for example, 802.1X), the password may not be displayed.
What to do if the command doesn't work?
If you see the error "Failed to execute command" after entering the command, check:
- Is the network name specified correctly (case sensitive!).
- Is the command prompt run as administrator?
- Is the "WLAN AutoConfig" service disabled (check in services.msc).
| Way | Do you need admin rights? | Does it work on Windows 10/11? | Suitable for corporate networks? |
|---|---|---|---|
| Through "Windows Settings" | No (if the user has already connected to the network) | Yes | No |
| Command Prompt (CMD) | Yes | Yes | Partial (not for 802.1X) |
| PowerShell | Yes | Yes | Partially |
| Third-party programs | Depends on the software | Yes | No |
3. Using PowerShell to extract the password
PowerShell — a more powerful tool than CMD, and also allows you to get the Wi-Fi password. This method is useful if you need to automate a process (for example, for a script) or if standard commands don't work. Instructions:
- Launch PowerShell as administrator:
- Click
Win + X→Windows Terminal (Administrator). - Or enter
powershellin the search, then selectRun as administrator.
- Click
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Format-Table -AutoSize
This command will output a table with all networks and their passwords.
If you only need the password for one network, the simplified command is:
(netsh wlan show profile name="NETWORK_NAME" key=clear) | Select-String "Key Contents"
Replace NETWORK_NAME to the current name.
The PowerShell Advantage: You can export the password list to a file for backup. For example:
(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key contents\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{PROFILE_NAME=$name;PASSWORD=$pass}} | Export-Csv -Path "C:\WiFi_Passwords.csv" -NoTypeInformation -Encoding UTF8
File WiFi_Passwords.csv will appear on the disk C:.
4. View the password in the Network and Sharing Center (for Windows 7/8/10)
This method is relevant for users who are still working on Windows 7 or Windows 8.1, but also works in Windows 10/11It's a bit longer than the previous ones, but doesn't require any command knowledge. Step-by-step instructions:
- Right click on the icon
Wi-Fiin the system tray (bottom right) and selectOpen Network and Internet settings. - In the window that opens, scroll down and click
Network and Sharing Center. - Select on the left
Managing wireless networks(V Windows 11 This item may be missing - then use CMD method). - Find the desired network in the list, right-click on it and select
Properties. - Go to the tab
Securityand check the boxShow entered characters. The password will appear in the field.Network security key. - 🔹 WirelessKeyView (from NirSoft) is a free utility that doesn't require installation. It displays all saved Wi-Fi passwords in a table and allows you to export them to
.txtor.html. - 🔹 WiFi Password Revealer — a simple program with a minimalist interface. Suitable for beginners.
- 🔹 Magical Jelly Bean WiFi Password Revealer — in addition to passwords, shows additional information about networks (for example, encryption type).
- 🔹 NetSpot — a multifunctional tool for analyzing Wi-Fi networks, which, among other things, can extract saved passwords.
IN Windows 11 the path has changed a little: instead Network Operations Center section is used Parameters → Network and Internet → Wi-Fi → Managing known networks, as described in the first method.
⚠️ Attention: If you are connected to the network via VPN or proxySome menu items may be hidden. Disable your VPN before attempting to view the password.
5. Third-party programs for extracting Wi-Fi passwords
If system methods fail (for example, due to security policy restrictions), you can use specialized utilities. These typically display all saved passwords in a convenient format, but caution is advised—download software only from official sources! Here are some proven programs:
How to use WirelessKeyView (example):
- Download the program from NirSoft official website (direct link to
WirelessKeyView.zip). - Unzip the file and run it
WirelessKeyView.exe(no installation required). - In the main window, you will see a list of all saved networks with speakers:
Network Name (SSID)— network name;Key (Ascii)— password in readable form;Key Type— encryption type (WPA2-PSK,WEPetc.).
File → Save All Items.⚠️ Warning: Some antiviruses (for example, Avast or Kaspersky) may block the launch WirelessKeyView, considering it potentially dangerous. This is a false positive—please add the program to your antivirus exceptions.
6. Special cases: corporate networks, lack of rights, loss of access
It's not always possible to extract a password using standard methods. Let's look at some common difficult situations and their solutions:
🔸 Corporate networks (802.1X, Enterprise)
If your network uses authentication via 802.1X (often in offices or universities), the password is stored not on the computer, but on the radius server (RADIUS). In this case:
- Please try contacting your IT department for connection details.
- If you have access to Active Directory, the password may be linked to your account.
- Use
certmgr.mscto view certificates if authentication occurs through them.
🔸 No administrator rights
If your account is limited, try:
- Launch Command line on behalf of another user with admin rights (via
Run as a different userin the context menu). - Use Portable versions programs (for example, WirelessKeyView), which do not require installation.
- Connect to the network from another device (for example, a phone) where you have admin rights, and extract the password from there.
🔸 The computer is not connected to the network
If you are not connected to Wi-Fi, but the password was once entered on this PC:
- Use CMD method - It will show passwords for all saved networks, even inactive ones.
- Check your system backups (if any) - passwords may be stored in configuration files.
🔸 Password not displayed (blank field)
If the password field is empty, possible reasons are:
- The network uses WPS instead of a password (click the button
WPSon the router to connect). - The password is stored in Windows Credential Manager - open
Control Panel→Credential Manager. - The network is configured via USB modem or mobile hotspot — the password may differ.
7. How to protect your Wi-Fi from being hacked after viewing your password
Once you have retrieved the password, we recommend that you check the security of your network. Here 5 stepsTo protect your router from unauthorized access:
- Change the default password:
- Go to your router settings (usually at
192.168.0.1or192.168.1.1). - Go to the section
Wireless→Securityand install a new onePSK key(at least 12 characters, with numbers and special characters).
- Go to your router settings (usually at
- Disable WPS:
- Find the option in your router settings
WPSand deactivate it - this protocol is vulnerable to brute-force attacks.
- Find the option in your router settings
- Update your router firmware:
- In the section
AdministrationorSystem ToolsCheck if the firmware is up to date.
- In the section
- Enable MAC address filtering:
- Whitelist only devices that are allowed access (MAC addresses can be found in the network adapter settings).
- Don't use standard names like
TP-Link_1234— they reveal the router model and make it easier to find vulnerabilities.
Important: If your router supports the Wi-Fi 6 (802.11ax) standard, enable WPA3 encryption—it's more secure than WPA2. To do this, select in the security settings WPA2/WPA3-Personal.
⚠️ Attention: If you are renting a place and the router is provided by your ISP (for example, Rostelecom or Beeline), changing the settings may violate the terms of the agreement. Check with your operator for the rules.
FAQ: Frequently asked questions about viewing Wi-Fi passwords
Is it possible to find out the password for a Wi-Fi network that the computer has never connected to?
No, system tools Windows Only show passwords for networks the device has previously connected to. If the computer hasn't connected to the network, try:
- View the password on another device (phone, tablet) that connected to this network.
- Go to the router settings (usually at the address
192.168.0.1or192.168.1.1). - Use WPS (if the function is enabled on the router).
Why doesn't the command line display the password?
Possible reasons:
- The command prompt is not run as administrator.
- The network name is misspelled (case sensitive!).
- The network uses Enterprise authentication (802.1X), and the password is stored on the server.
- The password was changed since the computer was last connected.
Try the alternative methods in this article.
Is it possible to find out the Wi-Fi password on MacOS?
Yes, on MacOS this is done through Keychain Access:
- Open
Spotlight(Cmd + Space) and enterKeychain Access. - Enter the Wi-Fi network name in the search.
- Double-click on the found entry and check the box.
Show passwordand enter your account password Mac.
How to view Wi-Fi password on Android?
On Android There is no built-in functionality for viewing passwords, but there are workarounds:
- 📱 Root access: Using a file manager (for example, Root Explorer) open the file
/data/misc/wifi/WifiConfigStore.xml— passwords are stored there. - 📱 Without root: Use apps like WiFi Password Viewer (requires Android 10+ and does not work on all devices).
- 📱 Via router: Access your router settings from your phone (via browser).
On iPhone It is impossible to extract the password without jailbreaking - only through Mac or router settings.
Is it legal to use password extraction programs?
Yes, if you extract passwords from their devices and networks to which you have legal access. However:
- Sharing passwords with third parties without permission breaks the law (Article 272 of the Criminal Code of the Russian Federation - unauthorized access to computer information).
- Using utilities to hack other people's networks is punishable by law.
- In corporate networks, extracting passwords may be considered a violation of internal regulations.
All methods in this article are for personal use for legitimate purposes.