How to view your Wi-Fi code on a PC: full instructions

It's quite common to need to connect a new device to a wireless network but lose or forget the password. Fortunately, if you've connected your computer to this router before, the operating system has saved the necessary data in a secure location. Restoring access It doesn't require complex technical knowledge or installation of third-party software, as Windows provides native tools for managing network settings.

There are several proven methods for retrieving forgotten data. These range from simply viewing the active connection properties to using the command line for more advanced users. In this article, we'll cover each method in detail, focusing on the nuances of working with different operating system versions. Microsoft Windows securely encrypts stored keys, but provides legal ways for the device owner to display them.

Before proceeding, it's important to ensure you have administrator rights on the device you plan to access information from. Without the appropriate rights, the security system will not allow you to view or change network settings. The encryption key is stored in the system registry and is only accessible through authorized system requests or the network properties interface.

Viewing a password through the Windows graphical interface

The easiest and safest way to find out the necessary data is to use the standard wireless network properties window. This method works equally well on Windows 10, as well as on the newer one Windows 11, although the path to the settings may differ slightly visually. You won't need to enter complex commands or use the terminal.

To begin, open the Network Control Panel. Press the key combination Win + R, enter the command ncpa.cpl and press Enter. The Network Connections window will open, where you'll need to find your active wireless connection. It's usually labeled "Wireless Network" or "Wi-Fi."

Double-click your connection icon or right-click and select "Status." In the window that opens, find the "Wireless Properties" button. Go to the "Security" tab. This is where you'll find the information you're looking for, hidden by default.

In the "Network Security Key" field, you'll see a series of dots or asterisks. To see the actual code, check the "Show entered characters" box. The system may prompt you to confirm administrator privileges via a UAC pop-up. Once confirmed, the dots will turn into readable text.

⚠️ Important: If the "Security" tab is grayed out or missing, this may mean your account doesn't have administrator rights or your network adapter drivers are not working properly. On some corporate networks, access to these settings may be blocked by group policies.

This method is ideal for those who are wary of getting lost in commands. It allows you to quickly access data without the risk of syntax errors. However, if you don't have access to the graphical interface or it's frozen, you'll have to use alternatives.

📊 Which version of Windows do you use most often?
Windows 10
Windows 11
Windows 8/8.1
Windows 7 or later
Linux/macOS

Using the command line to retrieve data

For users who prefer speed and precision, the command line (Command Prompt) or PowerShell are excellent tools. This method is especially useful if the graphical interface is running slowly or if you need to find the password for a network to which the computer is not currently connected but was connected in the past.

To launch the utility, click Win + X and select "Windows PowerShell" or "Command Prompt (Administrator)." It's important to run the console as an administrator, otherwise the system will return an access error. In the window that opens, enter the command to display a list of all saved profiles:

netsh wlan show profiles

After running the command, you'll see a list of all networks this PC has ever connected to. Find the desired network name (SSID) in the list. Then, use the following syntax, replacing "Network_Name" with the exact name of your profile:

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

In the command output, find the "Security settings" section. The "Key Content" line will contain the password you're looking for in cleartext. This method allows you to quickly copy the data by simply highlighting the text in the console window.

  • 🔹 Team netsh is a built-in Windows tool and does not require installation of add-ons.
  • 🔹 This method works even if the router is currently turned off, as long as you have a saved profile.
  • 🔹 You can copy the network name directly from the list to avoid typing errors.
  • 🔹 The output contains a lot of technical information, so look carefully for the "Key Contents" line.

Viewing through Settings in Windows 10 and 11

In modern versions of the operating system, Microsoft has introduced a more user-friendly settings interface, which is gradually replacing the classic control panel. Windows 11 the process has become even simpler and more visually understandable, although in Windows 10 It has also undergone changes with the latest updates.

To find your password in the new settings, click "Start" and go to "Settings" (the gear icon). Select "Network & Internet," then "Wi-Fi." In Windows 11, click "Manage known networks," select the desired profile, and click "View" next to the security key field. The system will ask for a PIN or fingerprint to verify your identity.

IN Windows 10 The path may look different: "Network and Internet" → "Status" → "Network and Sharing Center". Then the steps are similar to the classic method through ncpa.cplThe only difference is the entry point to the settings menu.

operating system Path to settings Need for admin rights Display key
Windows 11 Settings → Network and Internet → Wi-Fi Yes (biometrics/PIN) The "View" button
Windows 10 Settings → Network & Internet → Control Center Yes (UAC) Check the "Display" box
Windows 8.1 Control Panel → Network and Internet Yes (UAC) Check the "Display" box
Windows 7 Control Panel → Network Center Yes (UAC) Check the "Display" box

The settings interface is more secure against accidental changes, but requires biometric verification or a PIN, if configured. This is an additional layer of security that protects data even when physically accessing the unlocked screen.

Resetting your router as a last resort

If none of the computers in the house remember the password and the router hasn't been reset to factory settings, you can try finding the information on a sticker on the bottom of the device. However, if the password has been changed and isn't saved anywhere, the only other option is to reset the router to factory settings.

There is a button on the router body for this purpose. Reset (often recessed into the case). You need to press it with a paperclip for 10-15 seconds until the indicators flash. After this, the device will reboot, and the password will be the one indicated on the factory label. Usually, these are standard combinations like admin/admin or 12345678.

⚠️ Warning: Resetting your router will completely erase all provider settings (PPPoE, static IP), network name, and security rules. You will be without internet access until you reconfigure your router to work with your provider.

Use this method only as a last resort when other options are unavailable. Make sure you have a contract with your provider or access to your personal account to restore your internet connection settings.

  • 🔹 Find the sticker on the bottom of the router before resetting it—it may contain the factory password.
  • 🔹 Prepare your internet setup information from your provider in advance.
  • 🔹 After the reset, the network will be open or have a default password, which is unsafe.

Problems with access and user rights

Users often encounter a situation where the system refuses to display the security key, citing insufficient permissions. This is standard behavior. Windows security mechanism, designed to protect data from spyware or other users on this computer.

If you're working under an account with limited privileges, you'll need the administrator password. In a corporate environment, these privileges may be completely blocked by the system administrator. In this case, viewing the password using standard tools won't be possible.

Why does Windows hide passwords?

The operating system stores keys in encrypted form, linked to the user's SID. Direct access to configuration files is impossible without decryption, which is performed by the interface itself if authorized.

Problems can also arise due to registry errors or corrupted network profiles. If the system has "forgotten" how to display data correctly, delete the old network profile from the command line using the command netsh wlan delete profile name="Name" and reconnect by entering the password manually (if you remember it or find it on another device).

Security of saved passwords

Storing passwords on your PC is convenient, but it poses risks. If an attacker gains physical access to your computer or remotely runs a malicious script with administrator privileges, they can easily extract all stored Wi-Fi keys. Therefore, it's important to protect your Windows account with a strong password.

Using a guest network for visitors is a great way to secure your main network. This way, you won't have to share your main home internet password, minimizing the risk of it being compromised. Set up guest access in your router's interface.

Regularly changing passwords and updating router firmware are also important security measures. Avoid using simple combinations that can be easily brute-forced. WPA3 — a modern encryption standard that is recommended for use if your equipment supports it.

☑️ Wi-Fi Security Check

Completed: 0 / 5
Is it possible to find out the Wi-Fi password without administrator rights?

Not using standard Windows tools. The security system won't allow you to view the key without verifying your rights. There are third-party utilities, but using them on someone else's computer can be considered a security breach, and the programs themselves often contain viruses.

Where is the Wi-Fi password physically stored on a computer?

The data is stored in the Windows system registry and special encrypted configuration files in the folder ProgramData\Microsoft\Wlansvc\Profiles\InterfacesDirect access to these files is impossible without special rights and decryption keys.

What should I do if the "Security Key" field is empty or gray?

This means you don't have permission to view it. Try logging in with an administrator account. If this is a corporate computer, contact your IT department, as your security policy may prohibit viewing this data.

Will the command line method work on any router?

Yes, the method is netsh Works on the client side (your PC) and is independent of the router model (TP-Link, ASUS, D-Link, etc.). The only important thing is that the network profile is saved in Windows.