How to find the WiFi password on a Windows computer

Many users are familiar with the situation of needing to connect a new device to an existing network, but the password itself is forgotten or lost. Fortunately, the operating system Windows Stores data about previously connected wireless networks in a secure vault. This allows you to easily restore access to your security key without having to reset your router or find your ISP contract.

Recovering a forgotten key is a task that can be accomplished using standard system tools if you already have at least one computer that has successfully connected to this router before. The process doesn't require installing any third-party software and takes just a couple of minutes. The only requirement is that you have administrator rights on the device from which you plan to retrieve information.

There are several proven methods, ranging from simply viewing network properties in a graphical interface to using the command line for more advanced users. The choice of a specific method depends on the operating system version and your comfort level with system utilities.

Viewing the password through network settings

The easiest and safest way to find a saved key is to use the graphical interface Windows 10 or Windows 11This method is ideal for those who don't want to mess with code. You need to open the network settings, where the system stores connection profiles. Network and Sharing Center Provides access to wireless connection properties.

Find the WiFi icon in the system tray (usually in the lower right corner of the screen) and right-click it. In the menu that appears, select "Open Network and Internet settings." The next step may vary slightly depending on your OS version, but the general idea is the same: look for "Network and Sharing Center" or "Advanced network settings."

In the window that opens, find the name of your active wireless network (SSID) and click it. A status dialog box will open. Click the "Wireless Network Properties" button, then go to the "Security" tab. This is where the key field is located, hidden by asterisks.

⚠️ Caution: If you are on a corporate network or using a computer within an organization, access to the Security tab may be blocked by your administrator's group policies.

To display symbols, check the box next to "Show entered characters." This will turn the asterisks into readable text that can be copied or rewritten. This method only works for the network the computer is currently connected to.

📊 What version of Windows are you currently using?
Windows 10
Windows 11
Windows 7 or 8
I don't know

Using the Command Prompt (CMD)

If the graphical interface is not working correctly or you need to find out the password for a network that you are not currently connected to but have saved in memory, the command line will come to the rescue. Command shell Allows you to extract hidden profile data. This method is considered more professional and gives you complete control over network settings.

First, you need to launch the console with administrator rights. Click Win + X and select "Windows PowerShell (Administrator)" or search for "cmd," right-click, and select "Run as administrator." Without these rights, the system will not allow you to view saved security keys.

First, list all saved profiles by entering the command: netsh wlan show profilesYou'll see a list of all networks ever connected to this PC. Find the exact name of the desired network (SSID) in the list. Then use the following command to get detailed information:

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

In the resulting report, find the "Security settings" section. Inside, you'll see a line called "Key Content." The value next to this line is your password. This method is universal and works on all modern versions. Windows.

☑️ Check before entering a command

Completed: 0 / 4

This method has its own caveats. If the network name contains spaces or special characters, it must be enclosed in quotation marks. Otherwise, the command will be executed incorrectly, and you'll receive a syntax error.

View passwords for all saved networks

Sometimes you need to download a list of all passwords at once, for example, when migrating to a new router or to back up settings. Using standard tools Windows This is more difficult to do, but possible using PowerShell. This tool provides more flexible options for managing network profiles.

Open PowerShell as administrator. You can use a script to display all profile names and passwords in a readable format. However, the standard command netsh Requires entering the name of each network separately. For mass output, you can use a loop, but this requires caution.

A simpler option for a beginner is to review the profiles one by one, using the command from the previous section for each SSID. This will take longer, but it guarantees data retrieval without the risk of running a malicious script from an untrusted source.

Method Complexity Requires admin rights Works without connection
Network and Sharing Center Low No No (active only)
Command Prompt (CMD) Average Yes Yes (if the profile is saved)
PowerShell scripts High Yes Yes
Third-party software Low Yes Yes

It is worth noting that mass password dumping may be considered suspicious activity by antivirus software. Windows Defender may temporarily block a script from executing if it attempts to access protected registry data or memory.

Is it possible to recover a password if the profile is deleted?

If you delete a network profile from the list of known networks in Windows or reinstall the operating system, the password is permanently erased from the local storage. In this case, it is no longer possible to recover it from this computer using software. You will have to look for other methods, such as checking the router's sticker.

Third-party recovery programs

There are many utilities designed specifically for managing WiFi connections. Popular programs like WirelessKeyView or WiFi Password Decoder They can automatically read keys from the registry. They are convenient because they display all the information in a single window.

However, using such software carries risks. Antivirus databases Such utilities are often labeled as potentially unwanted programs (PUPs) or even malicious, as their functionality is identical to that of hacker tools. They should only be downloaded from the developers' official websites.

The advantage of these programs is their user-friendly interface and the ability to export the password list to a text file or HTML. This can be useful for system administrators configuring dozens of computers. For home users, a one-time use of CMD is often safer and faster.

⚠️ Warning: Be extremely careful when downloading WiFi hacks. Many of them contain Trojans or miners. Use only trusted utilities to recover your passwords, not to hack other people's networks.

If you decide to use third-party software, be sure to create a system restore point before launching it. This will allow you to roll back any changes if the program makes unwanted changes to system files or the registry.

What to do if your password is nowhere to be found

If no computer remembers the password, and you can't remember it yourself, the only option is to reset the router. This is a drastic measure that will return the device to factory settings. The login details will be located on a sticker on the bottom of the device.

On the back of the router, find the recessed button Reset or RestorePress it with a thin object (such as a paperclip or toothpick) and hold it for about 10-15 seconds until the indicators flash simultaneously. After rebooting, the router will operate with its default settings.

After the reset, you will have to reconfigure the Internet (enter the login and password from the provider if you use PPPoE) and set a new network name and password. Factory password from WiFi (if it was set to default) will also return to the value indicated on the label.

This method guarantees access, but it requires time to reconfigure all devices in the home. Smart plugs, TVs, and phones will have to be reconnected, as the old network profile will no longer work.

Security measures and data retention

Once you've learned or changed your password, it's important to store it properly. Writing the key down on a piece of paper and sticking it to your router is bad practice, especially if the device is in a public area. It's better to use a password manager.

Modern browsers and operating systems offer password synchronization via the cloud. If you save the key in Google Chrome or account Microsoft, you can access it from any device by logging into your account. This is convenient and secure if two-factor authentication is enabled.

Changing your WiFi password regularly is a good habit. Change your security key at least once a year or whenever an untrusted person might connect to your network. A complex password containing mixed-case letters and numbers will protect you from easy brute-force attacks.

⚠️ Note: Router interfaces and Windows versions are constantly updated. Menu locations and exact command syntax may differ slightly in new builds. Always consult the official documentation from your equipment manufacturer.

Remember that your network's security depends not only on the strength of your password, but also on the encryption protocol version. Make sure the appropriate standard is selected in your router settings. WPA2-PSK or WPA3The outdated WEP protocol can be easily cracked in a few minutes, even without knowing the password.

Why can't you use WEP?

The WEP protocol was cracked back in the 2000s. Its encryption algorithm contains vulnerabilities that allow the key to be recovered by analyzing the traffic. Modern systems may not even offer this protocol as a choice.

Frequently Asked Questions (FAQ)

Is it possible to find out the WiFi password if the computer is not connected to it?

Yes, this is possible if the network profile was previously saved on this computer. Using the command line and the command netsh wlan show profile, you can view the key for any saved network, even if it is currently out of range or disabled.

Where can I find the password if I reset the router to factory settings?

After resetting, the password becomes the default. Look at the sticker on the bottom or back of the router. It should say "Wireless Password," "WPA Key," or "PIN." If there's no sticker, try combinations like "admin," "12345678," or "password."

Are password recovery programs safe to use?

Using trusted utilities (such as those from NirSoft) is safe if they're downloaded from the official website. However, many antivirus programs may detect them as hacking tools because they access system data. Be prepared to add exceptions to the program.

What should I do if the Security tab in my network properties is grayed out?

This means your account doesn't have administrator rights, or access is restricted by group policies. Try running the command prompt as administrator—this method often bypasses GUI restrictions.

Is it possible to find out someone else's WiFi password using the command line?

No. The command prompt only allows you to view passwords that are already saved on your computer after successful entry. You can't hack someone else's network or find a password that has never been entered on that device using standard Windows tools.