How to view saved Wi-Fi passwords on a computer

Every home network owner has experienced the situation of needing to connect a new device to the network but completely forgetting the Wi-Fi password. Often, the computer is already connected to the internet and working reliably, but remembering the password for a smartphone or tablet becomes a daunting task. Fortunately, the operating system Windows stores this data in a secure registry, and it can be accessed using standard tools without installing additional software.

Recovering an access key isn't a complicated process, but it does require careful attention when entering commands or navigating menus. There are several proven methods, ranging from using the system's graphical interface to the command line for advanced users. Microsoft Provides different levels of access to network settings, so you can find the desired setting even in the latest versions of the OS.

In this article, we'll cover in detail all the current methods for extracting saved wireless network data. You'll learn how to use built-in diagnostic tools, how to navigate the console, and which third-party tools might be useful in emergency situations. The key is to follow the instructions carefully to avoid errors.

📊 How do you usually connect new devices?
Via the QR code on the router
I enter the password manually
I use the WPS button
Copying from another device

Using the Windows graphical interface

The easiest and safest way to find a forgotten password is to use the standard operating system settings. This method doesn't require any special commands and is suitable even for those who rarely use their computer. You'll need a working connection to the wireless network whose password you want to find.

To get started, open the Network Control Panel. Depending on your version, Windows (10 or 11), the path may differ slightly, but the logic remains the same. Right-click the Wi-Fi icon in the system tray (near the clock) and select "Network and Internet settings." Next, find the "Network and Sharing Center" link or simply "Properties" for the active connection.

⚠️ Note: If you're using a corporate laptop, access to these settings may be restricted by your system administrator. In this case, the GUI may not display the security tab.

In the status window that opens, click "Wireless Network Properties." Go to the "Security" tab. This is where the key you're looking for is hidden. By default, it appears as black dots or asterisks. To see the text, check the "Show entered characters" box. The system may request administrator privileges to confirm this action.

After removing the mask, the desired combination will appear in the "Network Security Key" field. You can copy or rewrite it. This method works reliably on most home routers and access points, as it relies on a standard protocol. WPA2-Personal or WPA3.

Viewing passwords via the command line

For users who prefer speed and accuracy, using the command line is the ideal solution. CMDThis tool allows you to interact directly with the system's wireless network management service, bypassing graphical interfaces. This method is especially useful if the system interface is not working correctly or if you need to quickly obtain data for a script.

Run the command prompt as administrator. To do this, click Win + X and select the appropriate item from the menu, or search for "cmd," right-click, and select "Run as administrator." First, you need to find out the exact name of the network profile stored in the system. Enter the command:

netsh wlan show profiles

The list will display all networks this computer has ever connected to. Find the desired name (SSID) and copy it exactly, including case and spaces. Next, use the command to display the key for a specific profile. The syntax is as follows:

netsh wlan show profile name="Network_Name" key=clear

In the command output, find the line "Key Content." Your password will be displayed in cleartext next to it. This method is universal and works even in Safe Boot Mode. Windows.

  • 🔹 The command works without an internet connection, as it accesses the local registry.
  • 🔹 You can list all passwords at once using loops in batch files.
  • 🔹 This method does not require third-party software or antivirus exclusions.
  • 🔹 The result can be copied directly from the console window.

☑️ Algorithm of actions in CMD

Completed: 0 / 1

Receiving data through router settings

If your computer isn't connected to the network or you want to change the access key for all devices at once, it's a good idea to access the router's settings. This device is the control center of your local network and stores all current security settings. To access it, you'll need a browser and an Ethernet cable or Wi-Fi connection (if still active).

Open any browser and enter the gateway IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address is indicated on the sticker on the bottom of the router. You will be asked to enter your username and password to access the admin panel. If you haven't changed them, try the default ones: admin/admin or admin/password.

After logging in, find the section related to wireless mode. It may be called "Wireless," "Wi-Fi," "Wireless Network," or "WLAN." Inside, look for the "Security Settings" or "Wireless Security" subsection. The current access key will be displayed in the "PSK Password," "WPA Pre-Shared Key," or "Password" field.

Router brand Menu path (approximate) Field name Standard IP
TP-Link Wireless -> Wireless Security PSK Password 192.168.0.1
Asus Additional settings -> Wireless network Authentication Method / Pre-Shared Key 192.168.1.1
D-Link Wi-Fi -> Security Settings PSK encryption key 192.168.0.1
Keenetic My Networks and Wi-Fi -> Home Network Password 192.168.1.1
Tenda Wireless Settings -> Wireless Security Wireless Password 192.168.0.1

Firmware interfaces are constantly updated, and the layout of options may change. If you can't find the section you need, consult the official documentation from your model manufacturer or look for screenshots of the interface for your firmware version.

What should I do if my router password has been changed and is unknown?

If you've changed your router's admin password and forgotten it, the only solution is to reset the device to factory settings. To do this, press and hold the Reset button (usually recessed into the router's casing) for 10-15 seconds with a thin object while the router is turned on. After the reset, the username and password will return to the default settings (indicated on the sticker), but you'll have to reset your internet settings.

Using PowerShell for System Administrators

Modern operating system Windows increasingly shifts the focus of management to PowerShellThis tool offers more functionality than the classic command line and allows for an object-oriented approach. Passwords can be extracted using the NetSecurity module or direct API calls.

However, the simplest method in PowerShell, similar to CMD, is as follows. Open PowerShell as administrator and enter the command to get an XML profile report:

(netsh wlan show profile name="Network_Name" key=clear) | Select-String "Key"

This command will only output the line containing the desired key, which is convenient for quick copying. PowerShell also allows you to automate the process for all saved networks, creating a text file listing all passwords ever used.

Using PowerShell scripts is especially useful for IT professionals who need to quickly gather information from multiple workstations in an office. The script can be executed remotely if the user has the appropriate access rights to the target machines.

  • 🔹 PowerShell provides more flexible options for filtering output.
  • 🔹 Ability to export data directly to a CSV or TXT file.
  • 🔹 Support for remote command execution on other PCs on the network.
  • 🔹 Integration with other Windows system utilities.

Third-party password recovery utilities

If built-in tools are unavailable or cause difficulties for some reason, specialized programs come to the rescue. There are many free utilities designed for security auditing and data recovery. One of the most popular and time-tested is WirelessKeyView by NirSoft.

This program doesn't require installation (it's portable), which is a big plus. Once launched, it automatically scans the registry and displays a list of all saved Wi-Fi profiles with their keys in plain text. The data can be copied to the clipboard or saved to a text or HTML file.

⚠️ Warning: Antivirus programs may detect password recovery utilities as potentially unwanted software (RiskWare or HackTool). This is a false alarm caused by the program's functionality, but before running it, you should add the process to the exceptions list or temporarily disable protection.

Another option is the program WiFi Password DecoderIt works on a similar principle, reading data from Windows system files. The interface of such programs is usually extremely simplified: a single button to start the scan and a table with the results.

Using third-party software is justified when you need to quickly access a password on someone else's computer where user rights are restricted, or when standard methods fail. However, always download such utilities only from the developers' official websites to avoid infecting your system with real viruses.

Recovering access via a Microsoft account

In modern versions Windows 10 And Windows 11 There's a feature that syncs your settings, including saved Wi-Fi passwords, via your Microsoft cloud account. If this setting was enabled on your computer, you can find your password by signing in to your account from another device or through the web interface.

To do this, go to account.microsoft.com and sign in with your account. You can sometimes find your synced data in the "Devices" or "Privacy" section (the location may change depending on interface updates). However, Microsoft doesn't always provide direct access to your password list through the web interface; this feature often runs in the background to automatically connect.

A more secure method through the Microsoft ecosystem is to use a smartphone with the Link to Windows app installed or sign in to the same account on another PC, where the password may be visible in the network settings. This emphasizes the importance of using a single account for all your devices.

Why might my password not sync?

Wi-Fi password syncing only works if both devices are signed in to the same Microsoft account, settings sync is enabled, and the devices are in the trusted list. This feature may also not work on corporate networks or networks with special security requirements (e.g., 802.1x).

Is it possible to find out the Wi-Fi password if the computer is not connected to it?

No, you can't use standard Windows tools to view the password for a network your computer has never connected to or that has been removed from the list of known networks. The password is stored in a secure section of the registry only for active or previously successful connections. The only option is to view it on the router or another device that remembers this network.

What should I do if the command line says "Access denied"?

This means you launched Command Prompt (CMD) or PowerShell without administrator privileges. Close the window, right-click the program shortcut, and select "Run as administrator." Without elevated privileges, the system will not allow you to view the contents of security keys.

Is it safe to save passwords in Windows?

Yes, the operating system encrypts saved passwords and stores them in the system registry, which is accessible only to users with administrator rights. However, if an attacker with administrator rights gains physical access to your computer, they can extract this data using specialized software.

How to delete a saved password for an unnecessary network?

In the command line, use the command: netsh wlan delete profile name="Network_Name"This will completely delete the connection profile and its associated password from your computer's memory. After this, whenever you try to connect, the network will prompt you for the key again.

Is it possible to recover a password using a phone?

On Android (with root access) and iOS (only via jailbreak or syncing with a Mac/PC), you can view saved passwords. Modern Android 10+ and iOS 15+ versions have password viewing options in Wi-Fi settings, but this requires biometric authentication (FaceID or fingerprint).