It's common to have friends over or need to connect a new gadget to your home network, but you've completely forgotten your Wi-Fi password. Fortunately, if your computer is already connected to this network or has connected before, the operating system has stored this data in its encrypted storage. Recovering your security key doesn't require any special hacking tools or advanced programming knowledge.
There are several proven ways to extract this information using the system's built-in tools. We'll cover methods for Windows and macOS operating systems, as well as a method for accessing the router settings that works on virtually any device. The specific method you choose depends on your OS version and your level of access to the computer.
In most cases, the process takes no more than a couple of minutes. However, it's important to understand that some actions require administrator privileges. If you're using a work computer on a corporate network, your system administrator may have restricted access to these security settings.
Finding a password through the Windows 10 and 11 graphical interface
The easiest and most secure way to find the access key is to use the operating system's default network settings. This method doesn't require complex commands and is suitable even for inexperienced users. The interface may vary slightly depending on the Windows build, but the logic remains the same.
To get started, open the Start menu and select "Settings" (the gear icon). Go to "Network & Internet." If you're using Windows 11, select "Advanced network settings" and then "Advanced network settings." In earlier versions, simply look for the "Network and Sharing Center" link.
In the window that opens, find the active connection. Wi-Fi and click on its name (blue text). A small wireless network status window will appear. Here, you'll find the "Wireless Network Properties" button. Click it to access the security settings.
- 🔑 The Security tab contains all key encryption data.
- 👁️ The "Network Security Key" field is hidden by asterisks by default.
- ✅ Checking the "Show entered characters" box will make the password visible.
Check "Show entered characters," and your password characters will appear in the security key field. Copy or rewrite them. If the system requires administrator permissions, enter your account password or allow the action in the UAC pop-up.
⚠️ Note: If the Security tab is missing or the buttons are grayed out, your account may not have administrator rights, or your organization's group policies may block viewing this data.
Using the Command Prompt for Advanced Users
For those who prefer speed and accuracy, the command line or PowerShell are ideal. This method not only allows you to see the current password but also lists all saved profiles the computer has ever connected to. This is especially useful if you need to find the password for a network you're not currently connected to but have connected to in the past.
Launch the Command Prompt as administrator. To do this, right-click the Start menu and select "Windows PowerShell (Administrator)" or "Terminal." First, you need to find out the exact name of the network profile. Enter the command: netsh wlan show profilesFind your network name in the list.
Now that you know the name, use the following command to display detailed information, including the password. Replace Network_Name to the real name of your Wi-Fi:
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 works reliably on all versions of Windows, starting with Vista.
What to do if the command returns an error?
If the system reports "Group Policy does not allow key storage," it means that Windows security settings prevent storing passwords in cleartext. In this case, logging into the router is the only solution.
The advantage of the method is through netsh The advantage of this method is the ability to quickly copy the result or save it to a text file for later use. It's also a great way to check the security of passwords stored in the system.
Restoring access through macOS settings
Apple Mac users can also easily find saved passwords, but the process is slightly different due to the different security architecture. In macOS, all keys are stored in the iCloud Keychain. Access to them is protected, but the process is transparent to authorized users.
Open Spotlight by pressing a key combination Command + Space and enter "Keychain Access." Launch the app. In the left menu, select "System" or "iCloud," then find your wireless network name in the list.
Double-click the network name. In the properties window that opens, check the "Show password" box. The system will ask you to confirm the action by entering your Mac user account password or using Touch ID. Once confirmed, the password will appear in the text field.
In the latest versions of macOS (Ventura, Sonoma), the process has become even easier with the addition of a full Wi-Fi settings menu, similar to the one on your mobile device. Go to System Preferences → Wi-Fi, find the desired network, and click the "Details" button or the "Copy Password" icon.
- 🍎 The Keychain app stores all your system passwords.
- 🔐 Biometrics or macOS login password required to view.
- 📱 On newer Macs, you can copy your password directly to the clipboard.
This method ensures that you receive the exact password used to encrypt traffic. If the network uses a corporate security protocol (802.1x), the process may require additional confirmation from the IT department.
Checking data via the router's web interface
If your computer isn't connected to the network or the password isn't saved anywhere, the only universal option is to access your router settings. This method works regardless of your operating system, as you're accessing the device that's sharing the internet directly. You'll need an Ethernet cable or a Wi-Fi connection (if available).
Open any browser and enter the router's IP address in the address bar. Most often, this is 192.168.0.1 or 192.168.1.1The exact address, login, and password for entry are written on a sticker on the bottom of the device. Standard combinations are often admin/admin or admin/password.
After logging in, find the section related to wireless networking. It may be called "Wireless," "Wi-Fi," "Wireless Network," or "WLAN." Inside, look for the "Security" or "Basic Settings" subsection. This is where the current key is displayed in the "Password," "WPA Pre-Shared Key," or "Password" field.
| Router brand | Typical IP | Menu section | Password field |
|---|---|---|---|
| TP-Link | 192.168.0.1 | Wireless > Wireless Security | Password |
| ASUS | 192.168.1.1 | Wireless Network > General | WPA password |
| D-Link | 192.168.0.1 | Wi-Fi > Security Settings | PSK encryption key |
| Keenetic | 192.168.1.1 | My Wi-Fi networks | Password |
Modern router interfaces often feature a "Show Password" button (the eye icon) that unmasks characters. If you've previously changed your password and forgotten it, you can set a new one here. Don't forget to save your changes by clicking "Apply" or "Save."
⚠️ Please note: Router firmware interfaces are frequently updated. If you can't find the item you need, check the official instructions for your specific model on the manufacturer's website.
Viewing a Password via PowerShell (Alternative Method)
PowerShell provides more powerful tools for working with network configurations than the standard command line. This method is especially useful if you need to export information in a structured format or automate a process across multiple computers.
Launch PowerShell with administrator privileges. The command to retrieve the profile is similar to CMD, but the output syntax may be more flexible. Enter: netsh wlan show profile name="NameOfNetwork" key=clearPlease note that the network name must be enclosed in quotation marks if it contains spaces.
You can use a script to view all passwords in bulk, but for a one-time task, standard output is sufficient. In the "Security settings" block, look for the "Key Content" line. This is your security key.
☑️ Check before resetting your router
Using PowerShell is relevant for system administrators who need to quickly collect data from workstations. For home users, the difference between CMD and PowerShell in this context is minimal, but PowerShell often performs faster on modern versions of Windows.
What to do if your password is nowhere to be found
There are situations when none of the software methods help: the computer isn't connected, you don't have administrator rights, and you can't log into the router (the password has been changed or forgotten). In this case, the last, radical, but effective option is to reset the router to factory settings.
There is a small hole on the back of the device with the inscription Reset or RestorePress it with a paperclip and hold it there for 10-15 seconds until the lights blink. The router will reboot, and the Wi-Fi password will be set to the one on the sticker underneath.
However, after the reset, you'll need to reconfigure your internet. You'll need your ISP credentials (PPPoE login and password, if used, or DHCP settings). Without these credentials, the internet won't work, even if Wi-Fi is available.
If you're unsure, it's best to call a specialist or contact your provider's support team. They can remotely check your settings or provide the default login details if they haven't been changed.