Needing to connect a new device to a wireless network but losing or forgetting the password is one of the most common problems in home IT infrastructures. Fortunately, modern computer operating systems often store security keys Previously connected networks are stored in their registries or configuration files. This allows the device owner to restore access to data without having to physically reset the router.
There are several proven methods for retrieving saved data, depending on the operating system used and the level of access to the hardware. Windows And macOS Provide built-in tools for managing network profiles, allowing you to view hidden password text. It's important to understand that all of the described methods are only legal if you own the network or have direct permission from the administrator.
In this article, we'll detail the steps for various platforms, covering both the command line and the graphical interface. You'll learn how to find the necessary settings in your router's settings and understand why it's sometimes easier to reset the device to factory settings. The key to successful recovery is having at least one device that is already connected to the network and has saved credentials.
Finding a password in Windows 10 and 11 settings
operating system Windows Automatically saves profiles of all networks your computer has ever connected to. To view the hidden password for your currently active network, go to the Network and Sharing Center. Right-click the Wi-Fi icon in the system tray and select "Open network and internet settings," then look for a link to advanced settings or the Control Center.
In the window that opens, select your active wireless connection and click "Wireless Network Properties." Go to the "Security" tab, where the encryption type and key field will be displayed. By default, characters are hidden behind asterisks, but checking the "Show entered characters" box will make them visible. security key visible for reading.
⚠️ Note: If the "Security" tab is unavailable or the buttons are grayed out, your account may not have administrator rights. In corporate networks, access to these settings is often blocked by IT security policies.
For networks to which the computer has previously connected but is not currently connected, the procedure is a little more complex. You must use the Command Prompt or PowerShell with administrator rights. Enter the command netsh wlan show profilesto see a list of all saved profiles. Find the desired network name in the list and use the command netsh wlan show profile name="Network_Name" key=clear.
Using the Command Prompt to Restore Access
The command line method is the most versatile and works even when the operating system's graphical interface doesn't work correctly. This method requires careful syntax input, but provides direct access to network configurationsOpen a terminal as an administrator so that the system allows the request to reveal the keys.
After entering the command to display the profile, scroll down to the "Security Settings" section. There you'll see the "Key Contents" field, which displays the password you're searching for in clear text. This method is especially useful if you need to quickly copy a password for entering on another device without a keyboard.
If the system returns the error "Group Policy access denied," it means there are restrictions in the registry or local security policies. This is rare on home networks; it's usually a sign of a corporate environment or malware blocking changes to network settings.
☑️ Check before using CMD
For users who prefer a visual interface, there is an alternative in the form of third-party utilities such as WirelessKeyView from NirSoft. However, using third-party software always carries risks, so built-in tools Windows remain the most secure option. The command line doesn't require any additional software and leaves no traces in the system after the session ends.
Password recovery on macOS
Computer owners Mac You can find saved passwords through iCloud Keychain or a local keychain. To do this, open the Keychain app using Spotlight search or find it in the Applications → Utilities folder. Select the "Passwords" category in the list on the left and find the name of your wireless network in the right window.
Double-click the network name to open the properties window. Check the "Show password" box, after which the system will ask for identification. You will need to enter the password for your macOS user account or use biometric authentication via Touch ID, if supported by the device.
After successful authentication, a text password will appear in the field next to the checkbox. This method works reliably on all modern versions of the operating system, including macOS Ventura And Sonoma, although the System Preferences interface has been significantly modified. In newer versions of macOS, passwords can also be viewed in the Wi-Fi section of the Settings app by clicking the information icon next to the network.
⚠️ Note: If you changed your macOS login password but haven't updated your keychain, your old network password may not appear. In this case, you'll need to update your keychain in Settings.
Viewing the key through the router's web interface
If your computer isn't connected to the network or the password isn't saved anywhere, your only option is to access the router's settings. To do this, you'll need to know the gateway's IP address, which is usually found on a sticker on the bottom of the device (often 192.168.0.1 or 192.168.1.1). Connect your computer to the router using LAN cable or temporarily connect via Wi-Fi if the password is known to another device.
Enter the gateway address in the browser's address bar. The system will ask for your login and password to access the admin panel. If you've never changed this information, it's also located on the device's sticker. Popular factory combinations are admin/admin or admin/password. Interfaces from different manufacturers (TP-Link, Asus, Keenetic, Mikrotik) differ, but the search logic remains the same.
Find the section responsible for your wireless network. It may be called "Wireless," "Wi-Fi," "Wireless Mode," or "WLAN." Within this section, look for the "Security" or "Security Settings" subsection. This is where the current access key is stored in the "WPA Pre-Shared Key," "Password," or "Key" field.
| Router brand | Menu path (approximate) | Password field name |
|---|---|---|
| TP-Link | Wireless -> Wireless Security | Wireless Password |
| Asus | Wireless Network -> General | Authentication Method / Key |
| Keenetic | My Networks and Wi-Fi -> Home Network | Wi-Fi password |
| D-Link | Wi-Fi -> Security Settings | PSK encryption key |
What should I do if my router password has been changed?
If you changed your router's admin panel password and forgot it, you won't be able to restore it without resetting it. The only solution is to find the Reset button on the device (usually recessed) and press it with a paperclip for 10-15 seconds while the power is on. The router will reset to factory settings, and you'll be able to log in using the credentials on the sticker.
Comparison table of recovery methods
The method you choose depends on your current situation: whether you're connected to a network, what operating system you're using, and whether you have physical access to the hardware. Below is a comparison of the main methods to help you choose the most suitable one.
Using built-in OS tools is the fastest way if the device is already authorized on the network. The router method is universal, but requires administrator credentials. A factory reset is a last resort, as it temporarily disconnects all devices.
| Method | Necessary rights | Complexity | Risk of data loss |
|---|---|---|---|
| Windows settings | User | Low | No |
| Command line | Administrator | Average | No |
| Web interface | Router admin | Average | No |
| Resetting the router | Physical access | High | Yes (provider settings) |
Resetting your router as a last resort
If none of the software methods help, the only option left is to physically reset the device. On the back of the router, find the hole marked Reset or RestoreUse a straightened paperclip or a special needle to press the button inside the hole. Hold it for 10-15 seconds until the indicators on the case flash simultaneously.
After rebooting, the router will return to its factory settings. The Wi-Fi password will be the one on the sticker on the bottom of the device. However, you will need to re-enter your contract details.
⚠️ Important: Before resetting, make sure you have your contract with your ISP or the necessary login information (PPPoE username and password). Without these, your internet will not work after the reset, even if Wi-Fi is enabled.
After resetting, we recommend immediately changing the default administrator password to a complex and unique one. Factory passwords are easily found online, making your network vulnerable to attacks from neighbors or botnets. It's also a good idea to change the network name (SSID) to a unique one to avoid confusion with neighboring access points.
Questions and Answers (FAQ)
Is it possible to find out a Wi-Fi password if the computer has never connected to this network?
No, it's impossible to find out the password programmatically without connecting, as the operating system doesn't store data about networks it hasn't interacted with. The only option is to find another device that's already connected or reset the router.
Is it safe to use third-party password recovery programs?
Using unknown software carries risks. Many programs that promise to "hack" or "reveal" passwords contain malware or viruses. It's better to use built-in OS tools or proven utilities from reputable developers, such as NirSoft.
What should I do if the Security tab in Windows is grayed out and inactive?
This means you don't have administrator rights. You need to log in with an account with full rights or ask your network administrator to grant access. This may also be blocked by group policies on your corporate network.
Where can I find my router's IP address if the sticker has worn off?
Open command prompt and type ipconfigFind the "Default Gateway" line in the section for your wireless or Ethernet adapter. The IP address listed there is your router's address.
Is it possible to recover a password via a mobile phone?
Yes, you can view saved passwords on Android (with root access) and iOS (via the "Share Password" feature with Apple devices or via iCloud Keychain on Mac). On Android 10 and above, the connection QR code often contains the password in plain text or allows you to copy it.