Forgot your home Wi-Fi password and there's no sticker with the password on your router? Or need to connect a new device but can't be bothered to find the piece of paper with the code? In fact, if your PC or laptop is already connected to the network, you can easily retrieve the password from the system settings. Windows — without additional programs or hacking. In this article, we'll look at 5 proven methods, including methods for guest accounts and cases where access to admin panels is not available.
It is important to understand: all the described methods only work for networks to which the computer I've already connected beforeIf you're trying to find out someone else's network password (like your neighbor's), these instructions won't help—you'll need other tools for that (and, by the way, it might be illegal). Also keep in mind that in Windows 11 And Windows 10 The paths to the settings are slightly different, but the essence remains the same.
Before you begin, check two things:
- 🔹 You have rights administrator on PC (for most methods).
- 🔹 Computer at the moment connected to the target network (or connected earlier).
1. View your password through Windows Settings (the easiest way)
This is a basic method that works in Windows 10/11 and doesn't require installing any third-party software. This feature is available as long as you have administrator rights and your computer is currently connected to the network.
Instructions:
- Open the menu
Startand selectParameters(gear icon). - Go to the section
Network and Internet→Wi-Fi. - Click
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.
☑️ Check before you start
If the point Show entered characters no, then:
- 🔴 You are logged in under guest account (admin rights required).
- 🔴 The network is saved, but the password was not entered manually (for example, connecting via WPS).
- 🔴 Network settings are managed by Group Policy (relevant for work PCs).
⚠️ Attention: In some builds Windows 10 LTSC or corporate versions section Security parameters may be hidden. In this case, use command line method.
2. How to find out the password via the command line (CMD)
This method is universal and works even if the graphical interface Windows damaged. Suitable for Windows 7/8/10/11 and does not require administrator rights (but will only show the password for the current user).
Open Command line as administrator (click Win + X → Terminal (Administrator)) and enter:
netsh wlan show profile name="NETWORK_NAME" key=clear
Replace NETWORK_NAME the name of your Wi-Fi network (case-sensitive!). For example:
netsh wlan show profile name="TP-Link_5G" key=clear
In the execution results, find the line Key content — this is the password. If the command returned an error Failed to execute command, check:
- 🔹 Correctness of the network name (look in
netsh wlan show profiles). - 🔹 No spaces before/after
=in the team. - 🔹 Connected to the network at least once in the past.
A critical detail: the command will only show the password for networks to which the current user has connected. If the network was configured by another account on this PC, use the method with PowerShell.
3. Extracting the password via PowerShell (for all PC users)
PowerShell — a more powerful tool than CMD, and allows you to get passwords from all saved networks on the computer, even if the current user hasn't connected to them. Administrator rights are required.
Steps:
- Launch PowerShell on behalf of the admin (
Win + X→Windows PowerShell (Administrator)). - Enter the command to view all saved networks:
(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 - Wait for the execution - the network names will be displayed in the table (
PROFILE_NAME) and their passwords (PASSWORD).
If the command did not work:
- 🔹 Make sure that PowerShell Run with administrator rights.
- 🔹 Check if the service is disabled
Automatic WLAN configuration(services.msc). - 🔹 In some locales Windows replace
Key contentonKey Content.
What to do if PowerShell gives an "Invalid Access" error
This means that group policy prohibits reading Wi-Fi passwords. Solution:
1. Click Win + R, enter gpedit.msc (for Pro/Enterprise versions of Windows only).
2. Go to Computer Configuration → Administrative Templates → Network → Wireless LAN Networks.
3. Find a policy Prevent displaying saved passwords and turn it off.
4. Restart your PC and repeat the command.
4. Viewing the password in Windows configuration files (manual method)
All Wi-Fi passwords in Windows are stored in encrypted form in system files. They can be extracted manually, but this will require decryption Using utilities or scripts. This method is suitable for experienced users.
Where to look:
- 📁 File
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces\{GUID}\{NETWORK_NAME}.xml— contains an encrypted password in the tag<keyMaterial>. - 📁 Registry Windows:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces\{GUID}\Profiles.
To decrypt the password:
- Copy the contents of the tag
<keyMaterial>from an XML file. - Use the utility Mimikatz or a script on Python with module
pywintypesfor decryption.
⚠️ Attention: Editing the registry or system files may cause crashes. WindowsWe recommend creating a restore point before experimenting. Also, keep in mind that antivirus software may block Mimikatz as potentially dangerous software.
Alternative: Use a free utility WirelessKeyView from NirSoft, which automatically extracts passwords from system files. You can download it from official website (check the file for viruses before running!).
5. How to find out the password without administrator rights (workarounds)
If you have a guest account or limited privileges, the standard methods won't work. However, there are a few workarounds:
| Way | Conditions | Restrictions |
|---|---|---|
| Use Live CD With Linux | Need a flash drive with Ubuntu or Kali Linux | Physical access to a PC and ability to operate it is required. Linux |
| Recover password via Router | You need login information for your router's control panel (usually on a sticker) | It won't help if the password is changed after setup. |
| Connect via WPS | The router supports WPS, the button is physically accessible | Many modern routers turn off WPS by default |
The most reliable option for guest accounts is reset the router password to factory (button) Reset (for 10 seconds) and set up the network again. But this will disconnect all devices in the house from Wi-Fi!
Common mistakes and how to avoid them
When trying to find a Wi-Fi password, users often encounter common problems. Here are the most common ones and their solutions:
- 🔸 "Access Denied" Error in CMD/PowerShell
→ Launch the terminal as administrator (right click → "Run as administrator"). - 🔸 The network is listed, but there is no password.
→ It is possible that the connection was through WPS or Windows I didn't save the key. Try connecting again. - 🔸 Team
netshdoes not work in Windows 11
→ In the latest builds Windows 11 The syntax has not changed, but you may need to update your system. - 🔸 Antivirus is blocking WirelessKeyView
→ Add the utility to the exceptions or temporarily disable protection (at your own risk!).
If none of the methods worked, check:
- 🔹 Is the service disabled?
Automatic WLAN configuration(services.msc→ find the service and enable it). - 🔹 Is it used for connection? VPN or a corporate proxy (may block access to settings).
- 🔹 Are the system files damaged (run
sfc /scannowV CMD).
FAQ: Answers to frequently asked questions
Is it possible to find out the password for a Wi-Fi network that the PC has never connected to?
No, all the methods described only work for networks the computer has previously connected to. If you need to obtain the password for someone else's network, this is only possible:
- Through physical access to the router (sticker, button WPS).
- Using specialized hacking tools (illegal in most countries).
At home, it's easier to ask the network owner for the password.
Why is there no "Show typed characters" button in Windows Settings?
This happens for three reasons:
- You are logged in as guest account (admin rights required).
- The network was configured via group policy (relevant for work PCs).
- The password is not saved in the system (for example, connecting via WPS or Windows I didn't remember the key).
Solution: Use command line or PowerShell.
Is WirelessKeyView safe to use?
WirelessKeyView from NirSoft — is a legal utility, but some antivirus programs block it due to:
- 🔹 Password extraction capabilities (can be exploited by attackers).
- 🔹 Lack of digital signature (but this is typical for many portable utilities).
To minimize risks:
- Download the program only from official website.
- Check the file on VirusTotal.
- If in doubt, run it in a virtual machine.
How can you protect your Wi-Fi from this type of hack?
To prevent password extraction from connected devices:
- 🔹 Use WPA3 instead of WPA2 (if the router supports it).
- 🔹 Turn it off WPS in the router settings.
- 🔹 Change your password regularly (every 3-6 months).
- 🔹 Set up guest network for temporary devices.
- 🔹 Restrict access to PCs with important data (administrator passwords).
You can also use MAC filtering, but it's not a panacea - MAC-addresses are easy to forge.
Do these methods work on MacOS or Linux?
No, this article only describes methods for WindowsFor other OS:
- 🍎 MacOS: Open
Terminaland entersecurity find-generic-password -wa "NETWORK_NAME". - 🐧 Linux: Passwords are stored in
/etc/NetworkManager/system-connections/(you need a licensesudo).