Did you connect your laptop or PC to a wireless network a month ago, but now you've forgotten the password—and you need to connect a new device? Or is your neighbor asking you to "connect" to a Wi-Fi network, but you can't remember the password you entered during setup? This situation sounds familiar to many. Luckily, Windows 10 stores all saved Wi-Fi passwords in encrypted form, and they can be extracted without special programs.
In this article we will look at 5 working methodsHow to view the Wi-Fi code on a computer Windows 10 — from standard system tools to alternative methods for experienced users. You'll learn how to find a password using Network parameters, Command line, PowerShell, as well as using free utilities. All instructions are relevant for Home And Pro system versions, including the latest updates.
Important: If you have never connected to this network from your current device, It will not be possible to find out the password Windows doesn't store data about other people's access points. In this case, you'll need to contact your router or network administrator.
1. View the password through Network Settings (the easiest way)
This method doesn't require administrator rights and is suitable even for beginners. A few clicks are all it takes to view the saved password for the current or any previously connected network.
Instructions:
- 🖱️ Open
Start → Settings (gear icon) → Network and Internet. - 📶 Go to the tab
Wi-Fiand pressManaging known networks. - 🔍 Select the desired network from the list and click
Properties. - 👁️ Scroll down to the section
Security parametersand check the boxShow entered characters.
After that in the field Network security key The current password will be displayed. If the button Show entered characters is inactive, which means your account does not have administrator rights - you will need to enter your system password or use another method.
Make sure your computer is connected to the correct network.
Make sure you have administrator rights
Close your VPN or proxy if they are active.
Prepare a notepad to write down your password.
-->
⚠️ Attention: If you are connected to the network via guest profile (for example, in a cafe or hotel), this method will not work - such networks often use temporary access keys that are not stored in the system.
2. How to find out the Wi-Fi password via the command line (CMD)
For users who prefer to work with the console, there is a quick way to extract the password using the command netshThis method is universal and works even if the system's graphical interface crashes.
Step-by-step instructions:
- Open
Command lineas administrator (clickWin + Xand select the appropriate item). - Enter the command to view all saved networks:
netsh wlan show profilesIn the list, find the name of the desired network (for example,
TP-Link_1234). - Run the command to extract the password (replace
NETWORK_NAMEto the real name):netsh wlan show profile name="NETWORK_NAME" key=clear - Find the line in the results
Key content- this is your password.
If the command returns an error Failed to execute command, check:
- 🔄 Correct spelling of the network name (case is important!).
- 🛡️ Administrator rights (run CMD through
Win + X). - 📡 Connect to the network (if you have never connected to it from this PC, there will be no data).
What to do if the netsh command doesn't work?
If netsh gives an error or does not show the password, try an alternative command through PowerShell:
(Get-NetConnectionProfile | Where-Object -Property Name -eq "NETWORK_NAME").GetNetworkConnectivity() | Select-Object -ExpandProperty Password
Please note that this method requires Windows 10 version 1803 or newer.
3. Using PowerShell to extract the password
PowerShell — a more powerful tool than CMD, and allows for flexible management of network settings. It not only lets you view passwords but also export all saved networks to a file.
How to find out the password:
- Launch PowerShell as administrator (enter
powershellin search, thenCtrl + Shift + Enter). - Run the command to view all Wi-Fi profiles:
Get-NetConnectionProfile | Where-Object {$_.NetworkCategory -eq "Private"} | Select-Object Name - Copy the name of the desired network and paste it into the following command:
(Get-NetConnectionProfile -Name "NETWORK_NAME").GetNetworkConnectivity() | Select-Object -ExpandProperty Password
If the password is not displayed, try an alternative method:
$profile = Get-NetConnectionProfile -Name "NETWORK_NAME"$password = ($profile.GetNetworkConnectivity().Password)
Write-Host "Password: $password"
⚠️ Attention: In some builds Windows 10 (especially corporate) access to passwords through PowerShell may be blocked by security policies. In this case, use netsh or third-party utilities.
4. View the password in the wireless adapter properties
This method is suitable for experienced users as it requires working with Device Manager and the registry. However, it can be useful if standard methods don't work.
Instructions:
- 🖥️ Click
Win + R, enterncpa.cpland pressEnter(a list of network connections will open). - 🔌 Find your active wireless connection, right-click on it and select
Status → Wireless Network Properties. - 🔐 Go to the tab
Securityand check the boxShow entered characters.
If the tab Security is missing or the password field is empty, then:
- 📌 The network uses WPS-connection (no password required).
- 🔄 The network profile is damaged (try deleting the network and connecting again).
- 🛡️ Access blocked by group policy (relevant for work PCs).
5. Third-party programs for viewing Wi-Fi passwords
If system tools fail, free utilities can help. They not only display passwords but also allow you to export them to a file or copy them to the clipboard.
| Program | Peculiarities | Download link | Requires installation? |
|---|---|---|---|
| WirelessKeyView | Shows all saved passwords, supports export to .txt/.html |
NirSoft official website | No (portable version) |
| WiFi Password Revealer | Simple interface, one-click password copying | Magical Jelly Bean | Yes |
| NetPass | Works with Windows 7/8/10/11, shows connection history | Official website | No |
| PassFab WifiKey | Recovers passwords even after a system reset (paid) | PassFab | Yes |
How to use WirelessKeyView (for example):
- Download the program from official website (choose the version for 32-bit or 64-bit system).
- Unzip the archive and run
WirelessKeyView.exe(administrator rights are not required). - Find the required network in the table - the password will be in the column
Key (Ascii). - To copy all passwords, click
File → Save All Items.
⚠️ Attention: Download programs only from the official websites of the developers! Many "cracked" versions of password viewing utilities contain viruses or spyware. Check the file before use. VirusTotal.
6. How to Find Out Someone Else's Wi-Fi Password (Ethically and Legally)
If you need to connect to a network but you're not the device administrator (for example, on a work PC or a friend's laptop), standard methods won't work. However, there are legal ways to gain access:
- 📋 Ask the network owner to show you the password on their device (for example, on their phone in the router settings).
- 🔄 If you have access to router, go to its web interface (usually at
192.168.0.1or192.168.1.1) and look at the password in the sectionWireless → Security. - 📱 On Android-devices with rights root you can use the app WiFi Password Viewer.
- 🍎 On MacOS open
Terminaland enter:security find-generic-password -wa "NETWORK_NAME"
Warning: attempting to hack someone else's network or extract passwords without the owner's permission is illegal (Article 272 of the Criminal Code of the Russian Federation "Unauthorized access to computer information"). All methods in this article are intended to work with only own devices and networks to which you have legal access.
FAQ: Frequently asked questions about viewing Wi-Fi passwords in Windows 10
Is it possible to find out the password for the Wi-Fi I connected to a year ago?
Yes, if Windows hasn't reset your network settings. All saved passwords are stored in the system until you manually delete the network profile via Settings → Network & Internet → Manage known networks.
Why doesn't the netsh command show the password for some networks?
This happens if:
- The network uses WPS or Enterprise- authentication (for example, in offices).
- The network profile is corrupted (try deleting the network and connecting again).
- You connected via guest access (password is not saved).
How to protect your Wi-Fi passwords from being seen by other PC users?
If other people have access to your computer, follow these steps:
- Create a separate account without administrator rights.
- Encrypt your disk using BitLocker (available in Windows 10 Pro).
- Use group policies to block access to
netshAndPowerShell. - Remove unnecessary network profiles via
Settings → Network & Internet.
Do these methods work on Windows 11?
Yes, all the methods described (via Parameters, netsh, PowerShell and third-party utilities) are fully compatible with Windows 11The interface may differ slightly, but the principle remains the same.
Is it possible to recover a Wi-Fi password after reinstalling Windows?
No, unless you've made a backup. Passwords are stored in the registry and are deleted during a clean system installation. However, if you're connecting to the same router, you can:
- View the password on another device that has connected to this network.
- Go to the router settings (usually through
192.168.0.1or192.168.1.1). - Reset the router to factory settings (the password will be on the device sticker).