Forgot your home Wi-Fi password, but your computer is already connected to the network? This situation is familiar to many: the router was set up a long time ago, the password sticker has worn off, and now guests or a new device need to connect. Luckily, Windows stores all saved network passwords in encrypted form, and they can be extracted without special programs. In this article - 5 proven methodsHow to find out the Wi-Fi password on a PC Windows 10 or Windows 11, including methods through command line, system parameters And third-party utilities.
Some methods require administrator rights, others work even without them. We'll also look at what to do if standard methods don't work, and how export all saved passwords for backup. Important: all actions are performed legally - you only extract the password from the network you are already connected to.
⚠️ Attention: Extracting passwords from other people's networks (such as neighbors' or public hotspots) without the owner's permission may violate Federal Law No. 149-FZ "On Information, Information Technologies, and Information Protection" and qualify as unauthorized access. Use the instructions only for their own networks.
Method 1: via Windows Settings (without the command line)
The easiest method is to use the built-in menu network parametersHe works for Windows 10/11 and does not require installation of additional software. The main requirement is that your PC must be actively connected to the network whose password you want to know.
Step-by-step instructions:
- Open the menu
Startand selectParameters(gear icon). - Go to the section
Network and Internet→Wi-Fi. - Click on the link
Managing known networks. - Find the required network in the list and click on it.
- Select
Properties, then scroll down to the blockSecurity parameters. - Check the box
Show entered characters— the password will become visible.
⚠️ Attention: If the button Properties is inactive or missing, then your account Windows doesn't have administrator rights. Try other methods or log in with an administrator account.
Make sure your PC is connected to the correct Wi-Fi network|
Check administrator rights (if required)|
Close your VPN or proxy (they may be blocking access to settings) -->
Method 2: via command line (netsh)
Advanced Method - Using a Utility netsh (Network Shell). It works faster than the graphical interface and allows export passwords for all saved networks into a text file.
Run the following commands in command prompt as administrator:
netsh wlan show profiles
This command will list all the networks your PC has ever connected to. Find the network you need (for example, MyWiFi_5G) and run:
netsh wlan show profile name="MyWiFi_5G" key=clear
Find the line in the results Key content — this is the password. If the network name contains spaces, enclose it in quotation marks: name="My Home WiFi".
To save passwords all networks to file wifi_passwords.txt on the desktop, use the command:
for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -v -e " " > nul && (netsh wlan show profile name="%j" key=clear | findstr "Key Contents" >> "%USERPROFILE%\Desktop\wifi_passwords.txt")
3. Method: via PowerShell (cmd alternative)
PowerShell — a more powerful tool than the standard command line. It can be used to extract passwords. one team, without looking through unnecessary information.
Open PowerShell as administrator and run:
(netsh wlan show profile name="NETWORK_NAME" key=clear) | Select-String "Key Contents"
Replace NETWORK_NAME the name of your Wi-Fi network (for example, TP-Link_1234). The result will look like this:
Key content: 1234567890
For export all passwords to file wifi_pass.txt use the script:
$profiles = netsh wlan show profiles | Select-String "All user profiles"$results = @()
foreach ($profile in $profiles) {
$profileName = $profile.ToString().Trim().Split(":")[1].Trim()
$password = (netsh wlan show profile name="$profileName" key=clear | Select-String "Key Contents").ToString().Trim().Split(":")[1].Trim()
$results += "Network: $profileName | Password: $password"
}
$results | Out-File -FilePath "$env:USERPROFILE\Desktop\wifi_pass.txt" -Encoding UTF8
What to do if PowerShell complains about the execution policy?
If an error occurs "Scripting is disabled on this system.", temporarily allow script execution with the command:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
Once you're done, return the settings back:
Set-ExecutionPolicy Restricted -Scope CurrentUser4. Method: via the Network and Sharing Center (Windows 7/10/11)
This method works in all versions Windows, including obsolete ones (for example, Windows 7). It's a bit longer, but it's reliable and doesn't require administrator rights if you're already connected to the network.
Step-by-step instructions:
- Right-click on the Wi-Fi icon in the tray (bottom right) and select
Open Network and Internet settings. - Scroll down and click
Network and Sharing Center. - In the window that opens, click on the active connection (for example,
Wi-Fi (MyNetwork)). - Click the button
Wireless network properties. - Go to the tab
Securityand check the boxShow entered characters.
⚠️ Attention: IN Windows 11 The path to this menu may vary. If the button Network and Sharing Center missing, use first method through Parameters.
| Windows version | Path to Wi-Fi settings | Do you need admin rights? |
|---|---|---|
| Windows 7 | Control Panel → Network and Internet → Network and Sharing Center |
No |
| Windows 10 | Settings → Network & Internet → Wi-Fi → Manage known networks |
No |
| Windows 11 | Settings → Network & Internet → Advanced network settings → Advanced network properties |
Yes (for some networks) |
5. Method: using third-party utilities (WirelessKeyView, WiFi Password Revealer)
If standard methods do not work (for example, due to corporate policy restrictions), you can use free programs to extract passwords. They read data from the system storage. Windows and display them in a convenient form.
Top 3 Wi-Fi Password Viewing Utilities:
- 🔹 WirelessKeyView (from NirSoft) is a portable program that does not require installation. Shows all saved passwords, including hidden networks. Download from the official website.
- 🔹 WiFi Password Revealer - simple interface with the ability to export passwords to
.txtor.csv. - 🔹 Magical Jelly Bean WiFi Password Revealer - supports Windows 10/11 and shows additional information about the network (encryption type, router MAC address).
⚠️ Attention: Download utilities only from official websites of developersPrograms from unverified sources may contain malicious code disguised as legitimate software.
6. Method: via Windows configuration files (for advanced users)
Wi-Fi network passwords are stored in in encrypted form in system files WindowsThey can be extracted manually, but this method requires knowledge registry and work with XML files.
Instructions:
- Open Explorer and go to this path:
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}Instead of
{GUID}will be a unique identifier for your network adapter. - Find the file with the extension
.xml, whose name matches the name of your network (for example,MyWiFi_5G.xml). - Open the file in Notepad and find the tag
<keyMaterial>— there will be an encrypted password inside it. - To decrypt it, use PowerShell:
$secure = ConvertTo-SecureString -String "ENCRYPTED_PASSWORD" -AsPlainText -Force$credential = New-Object System.Management.Automation.PSCredential("User", $secure)
$credential.GetNetworkCredential().Password
Passwords in configuration files are stored in Base64 format, and decrypting them requires knowledge of Windows encryption algorithms. For most users, methods 1–4 are easier.
What to do if none of the methods work?
If you have tried all the methods and still cannot extract the password, check the following:
- 🔌 Make sure your PC connected to the network, the password for which you're looking for. Without an active connection, some methods won't work.
- 👤 Check your account permissions. For the command line and PowerShell frequently required administrator rights.
- 🛡️ If the network is corporate (for example, in an office or university), the password can be stored on the authentication server (RADIUS) and not saved locally.
- 🔄 Restart your computer and router. This can sometimes help unlock access to network settings.
If nothing helps, there are two options left:
- Reset your router settings (button
Reseton the back panel) and configure it again. This will delete all custom settings, including your Wi-Fi password, network name, and linked devices. - Contact Internet provider. The standard password may be indicated on the router box or in the contract (for example, for routers from Rostelecom or Beeline).
FAQ: Frequently Asked Questions About Wi-Fi Passwords on PC
Is it possible to find out the password for a Wi-Fi connection that another user connected to on the same PC?
Yes, if his profile is saved in the system. Use netsh wlan show profiles in the command line to see all networks, and extract the password using any of the methods described. However, this requires administrator rights.
Why isn't there a Properties button for my network in Windows Settings?
This could mean one of three things:
- You are not connected to the network at the moment (you need to reconnect).
- The network profile is corrupted (try deleting the network and connecting again).
- Your account does not have permission to view passwords (you need an admin account).
Is it possible to find out the Wi-Fi password on a Mac or Linux?
Yes, but the methods are different:
- MacOS: Open
Terminaland entersecurity find-generic-password -wa "NETWORK_NAME". - Linux: Passwords are stored in
/etc/NetworkManager/system-connections/. Open the network file and find the linepsk=.
Is it safe to use third-party password extraction programs?
Yes, if you download them from official websites (For example, NirSoft or Magical Jelly Bean). However:
- Some antiviruses (for example, Avast) may block such utilities as "potentially dangerous".
- Avoid programs that offer to "hack other people's networks" - they are scams.
How to protect your Wi-Fi from hacking after your password has been extracted?
If you suspect that your password may have been leaked to third parties:
- Change the password in the router settings (section
Wireless → Security). - Use WPA3 instead of WPA2 (if the router supports it).
- Turn it off
WPS- This protocol is vulnerable to brute force attacks. - Turn on MAC address filtering (although this is not a panacea).