Needing to connect a new device to a wireless network but having long forgotten the password is one of the most common situations in everyday IT practice. Fortunately, modern computer operating systems have a built-in feature for saving access keys to previously used networks. This not only allows for automatic reconnection after a reboot but also allows the user to change the password at any time. view saved password directly in the system interface.
There are several proven ways to extract this information, and the choice of a specific method depends on your operating system and comfort level with technical utilities. Owners of computers running Windows can use the graphical interface or the command line, while users macOS You'll need access to your keychain. Regardless of the path you choose, you won't need any third-party programs or router administrator rights if your computer already has an active connection.
In this guide, we'll cover the steps for various platforms in detail, focusing on often-overlooked nuances. You'll learn how to quickly find the right setting in the settings, how to use system commands to retrieve hidden data, and what to do if standard methods fail. Let's start with the simplest and most accessible method for users of the most popular desktop OS.
Viewing a password through the Windows graphical interface
The most obvious and secure way to find your access key is to use the standard operating system settings. In Windows 10 and Windows 11, this process has been significantly simplified compared to previous versions. You don't need to be a system administrator to perform these steps; physical access to the desktop is sufficient. Open the menu Start and go to the section Parameters, which is usually indicated by a gear.
Next, select a category Network and InternetIn the window that opens, find the section Wi-Fi (or Wireless network). Here you will need to find a link or button Configuring adapter settings (in Windows 11 this may be an item Additional network settings). The classic network connections window will open in front of you, where you need to find the icon of your wireless connection, right-click on it and select State.
- 📡 In the window that opens, click the button
Wireless network properties. - 🔐 Go to the tab
Securityat the top of the dialog box. - 👁️ Check the box next to the item
Show entered characters. - ✅ Field Network security key will no longer be hidden by dots and you will see your password.
It's important to note that performing these steps on some corporate computers may require local administrator privileges. If the system prompts you to confirm your account, enter your administrator credentials. Also, keep in mind that this method only reveals the password for the network to which the computer is currently connected or has previously been connected and saved in the profile.
⚠️ Attention: If the Security tab is missing or the display icon is grayed out, it may mean that the network profile was created with limited rights or is managed by your organization's group policies.
Using the Command Prompt in Windows to Get the Key
For users who prefer a text-based interface or are unable to use graphical settings due to system limitations, the command line is the ideal solution. netsh (Network Shell) allows you to manage network configurations and display hidden settings, including security keys. This method is especially useful if you need to find the password for a network to which the computer is not currently connected, but whose profile is saved on the system.
First, you need to launch the command prompt with administrator rights. Press the key combination Win + X and select Terminal (Administrator) or Command Prompt (Administrator)The first step is to list all saved WiFi network profiles. Enter the command netsh wlan show profiles and press Enter. The system will display a list of all networks this computer has ever connected to.
netsh wlan show profile name="Your_Network_Name" key=clear
In the resulting list, find the name of the desired network. Note that the name must match exactly, including spaces and letter case. Then, use the command above, substituting Your_Network_Name The real name of your router. In the information block Security parameters (Security settings) find the line Key content (Key Content). The value to the right of the colon is the password you're looking for.
This method is great because it's versatile and works even when the Windows graphical interface isn't working correctly. It also allows you to quickly copy the network name and password without unnecessary mouse clicks. However, be careful when entering the commands: any typo in the profile name will result in an error.
☑️ Check before entering a command
Finding Your WiFi Password on macOS Using Keychain Access
Computer users Apple They encounter a different file structure and security system. In macOS, all passwords, including Wi-Fi network keys, are stored in a secure vault called Bunch of keys (Keychain Access) is a centralized password management system that syncs data across devices if iCloud is enabled, but access requires authorization.
To find your password, open Spotlight search (key combination Cmd + Space) and enter "Keychain Access." Launch the app. Select a category in the left column. PasswordsIn the list that appears on the right, find the name of your wireless network. If the list is large, use the search in the upper-right corner of the window.
Double-click on the network name. A properties window will open, where you need to check the box. Show passwordThe system will immediately ask you to confirm your identity: you'll need to enter your macOS user account password or use Touch ID / Face ID if your computer is equipped with the appropriate sensors. After successful authentication, a text access key will appear in the field next to the check mark.
⚠️ Attention: If you changed your macOS account password but didn't update your keychain, the system might not allow you to access your old passwords until you sync or reset your keychain.
Viewing the password through the router's web interface
If your computer is connected to the network but you can't view the password using the operating system (for example, due to access rights issues), the "gold standard" is always accessing the router's settings. Since your PC is already on the local network, you have direct access to the device's administrative panel. To do this, you need to know the IP address of the default gateway.
You can find out the gateway address through the command line. Enter the command ipconfig (for Windows) or go to System Preferences → Network (for macOS) Find the line Main gateway (Default Gateway). Most often, this is an address of the form 192.168.0.1, 192.168.1.1 or 192.168.31.1Enter this address into the address bar of any browser.
You will be taken to the router's login page. If you've never changed the default settings, your login and password are often found on a sticker on the bottom of the device (usually admin/admin or admin/password). After logging in, go to the section Wireless, Wi-Fi or Wireless modeThere in the field Wireless Password or PSK Key The current key will be displayed. You can not only view it, but also change it to a more complex one.
| Router brand | Typical IP address | Standard login | Standard password |
|---|---|---|---|
| TP-Link | 192.168.0.1 | admin | admin |
| ASUS | 192.168.1.1 | admin | admin |
| D-Link | 192.168.0.1 | admin | (empty) |
| Xiaomi | 192.168.31.1 | admin | specified during setup |
| Keenetic | 192.168.1.1 | admin | 1234 |
What should I do if I've changed my router password and forgotten it?
If the default login/password pair doesn't work and you don't remember your credentials, you'll need to reset the router to factory settings. To do this, locate the small hole marked "Reset" on the router's case and press it with a paperclip for 10-15 seconds while the router is turned on. After this, the router will reset to the factory settings listed on the sticker, but you'll need to reconfigure your internet settings.
Using PowerShell for Advanced Users
An alternative to the classic command line in Windows is a more powerful tool - PowerShellIt allows you not only to display information but also to process, filter, and export it. This method can be useful if you need to quickly retrieve a password and copy it without unnecessary characters, or if the standard console returns an encoding error.
Run PowerShell as administrator. The command to get the profile is similar to netsh, but the syntax may differ depending on the version of PowerShell. However, the most reliable way in PowerShell is to call the same command netsh, as it's a system-wide feature. However, for those who prefer pure PowerShell, you can use the following script, which extracts the XML network profile:
$profileName = "Network_Name"netsh wlan export profile name="$profileName" key=clear folder="C:\"
Select-Xml -Path"C:\Wi-Fi-$profileName.xml" -XPath"//keyMaterial" | Select-Object -ExpandProperty Node
Remove-Item"C:\Wi-Fi-$profileName.xml"
This script exports the profile to an XML file where the password is stored in clear text in the tag keyMaterial, extracts it, and immediately deletes the temporary file. This is a more complex, but elegant, method for those who understand how scripts work. The key here is to correctly specify the profile name and the path to the temporary file.
Possible problems and solutions
Despite the simplicity of the methods described, users may encounter a number of difficulties. For example, the "Network Security Key" field may not be editable or viewable even with administrator rights. This often happens if the network profile was imported from another computer with special security policies or if the network card uses specific drivers.
Another common issue is when the profile name in the command line matches the actual network name. In Windows, the profile name and SSID (the visible network name) may differ if the user manually renamed the profile when first connecting. In this case, use the command netsh wlan show profilesto see the internal names of the profiles, not the names of the access points.
- 🚫 Access error: Make sure you run the console as an administrator, not just as a user.
- 📝 Encoding: If the network name or password contains Russian letters, the command line may display gibberish. In this case, it's better to use the graphical method.
- 🔄 Synchronization: On a MacBook, make sure iCloud Keychain is turned on if you're trying to find the password for a network you connected to on an iPhone but not on this Mac.
⚠️ Attention: Operating system and router interfaces are constantly updated. The layout of menu items may vary slightly depending on the Windows version (Home, Pro, Enterprise) or the router firmware version. If you can't find an exact match, look for synonyms (for example, "Wireless Network" instead of "Wi-Fi").
FAQ: Frequently Asked Questions
Is it possible to find out the WiFi password if the computer is not connected to it, but the network is on the list of available ones?
No, it's impossible to use standard Windows or macOS tools to find the password for a network for which the device doesn't have a saved profile (access keys). The computer must have successfully connected to this network at least once and saved its data. Otherwise, the only solution is to access the router settings (if you have physical access and login information) or use special utilities to recover passwords from other devices where the password is saved.
Is it safe to use third-party password recovery programs?
Using third-party software (such as WirelessKeyView by NirSoft) can be effective, but it carries risks. Such programs are often flagged by antivirus software as hacking tools (HackTools), as their operating principle is similar to that of stealer viruses. They should only be downloaded from the official developers' websites. The safest method is using built-in OS tools.
What should I do if I forgot my router password to access the settings (admin)?
If you changed your router's web interface password and forgot it, it can't be recovered. The only option is to perform a full reset of the device to factory settings. This will reset the router to its default login and password (found on the sticker), but you'll have to reconfigure your internet connection (PPPoE, L2TP, or dynamic IP), as all old settings will be erased.
Why aren't there any stars or dots on the security tab in Windows?
If the field is empty or no dots appear, this may indicate that the wireless adapter driver isn't correctly transmitting this information to the operating system, or the network profile is corrupted. Try "forgetting" the network in the Wi-Fi settings and reconnecting, entering the password (if you wrote it down somewhere). The system should then save the key correctly.