It's quite common to need to connect a new device to a network but lose or forget the access key. Fortunately, if you've previously connected to this access point on your computer, the operating system has stored the necessary data in encrypted form. Restoring access This can be done using the system's built-in tools without the need for third-party software, which guarantees the security of your personal data.
The process for retrieving stored keys varies depending on the operating system installed. On Windows, this data is stored in the registry and network profile, while on macOS, it is securely protected by iCloud Keychain or local storage. Windows 10 And Windows 11 Several solutions are available: through the graphical settings interface or the command line. Understanding how network profiles work will help you quickly resolve the issue.
It's important to note that you'll need administrator privileges to perform most operations. Without the appropriate privileges, the system won't allow you to view sensitive network connection information. Below, we'll detail all the current methods that will work reliably in 2026.
Viewing the password through Windows network settings
The easiest and safest way is to use the operating system's graphical interface. This method is ideal for users who don't want to risk entering complex commands. In recent versions of Windows, Microsoft has significantly simplified access to this information by moving it to a convenient settings menu.
First, open the Start menu and go to Settings. Find the item responsible for network connections. The path may vary slightly depending on your OS version, but the logic remains the same: look for the active connection and its properties.
- 🔍 Click the Wi-Fi icon in the system tray and select "Properties" or "Manage known networks."
- 🔍 Go to
Settings → Network and Internet → Wi-Fi. - 🔍 Find the "Manage known networks" button and select the desired profile.
- 🔍 In the window that opens, find the "Network Security Key" field and click the "View" button (eye).
⚠️ Attention: The View button will only be active if you're logged in with administrator privileges. If the system requires user account confirmation (UAC), be sure to enter your password or use biometrics.
After successful authorization, the hidden characters in the password field will be replaced with readable text. Copy the resulting character combination and save it in a safe place to avoid losing it again. This method works reliably for all modern encryption protocols, including WPA2 and WPA3.
Using the CMD command line
For more experienced users or when the graphical interface isn't working correctly, the command line is a great choice. This tool allows you to access deep system settings and display information about all saved Wi-Fi profiles.
Launch the Command Prompt as administrator. To do this, right-click the Start icon and select the appropriate option. First, you need to find out the exact profile name, which may differ from the network name (SSID) if you changed it manually.
netsh wlan show profiles
Find your network name in the list. Then use the command to display detailed information, adding the switch to display the keys in plaintext. The command syntax requires precision, so check the profile name carefully.
netsh wlan show profile name="Your_Network_Name" key=clear
In the command output, find the "Security Settings" section. There you'll find the line "Key Contents," which displays the password you're looking for. Command line — a powerful tool that ignores many of the limitations of the graphical interface.
What to do if the command returns an error?
If you see the error message "Group Policy does not allow...," this means access to saved passwords is blocked by your system administrator or antivirus software. This is standard security practice in corporate networks.
Extracting data via PowerShell
A more modern alternative to the classic CMD is PowerShell. It offers advanced capabilities for working with network adapters and allows for more structured information display.
Open PowerShell with administrator privileges. Enter the command to retrieve all wireless network profiles. This method is especially useful if you need to not only view the password but also analyze other connection parameters, such as encryption type or channel.
- 🚀 Enter the command:
Get-NetConnectionProfileto view active profiles. - 🚀 To view the password for a specific profile, use:
(Get-NetConnectionProfile -Name "NetworkName").GetNetworkPassword(). - 🚀 If standard methods don't work, try this script:
netsh wlan show profile name="Name" key=clear.
PowerShell may prompt you to confirm whether to run scripts. If this happens, temporarily change the execution policy or run the console in bypass mode for the current session. Windows PowerShell is a native component of the system and does not require installation of additional software.
Checking saved passwords on macOS
For laptop owners MacBook iMacs are even luckier: in the Apple ecosystem, all Wi-Fi passwords are automatically synced via iCloud Keychain. This means you can find a forgotten key not only on the laptop itself, but also on any connected device.
To find your password, open the Keychain Access app. You can find it in Spotlight (Cmd + Space) or in the Utilities folder. In the list on the left, select the "Passwords" or "System" category, then enter the name of your Wi-Fi network in the search.
Double-click the found item. In the window that opens, check the "Show password" box. The system will ask you to enter your macOS user account password or use Touch ID to verify your identity.
| operating system | Access method | Admin rights required | Complexity |
|---|---|---|---|
| Windows 10/11 | Network parameters | Yes | Low |
| Windows (CMD) | Command line | Yes | Average |
| macOS | Bunch of keys | Yes (TouchID) | Low |
| Linux | Terminal / nmcli | Yes (sudo) | High |
After confirmation, the password will appear in the text field. This method is the most secure for Apple users, as the data is stored in the processor's secure enclave.
Login to the router's web interface
If none of the methods on the laptop itself work (for example, you're connected via Ethernet or the password has never been saved), the only other option is to access the router settings. To do this, the laptop must be connected to the router via cable or Wi-Fi.
Open your browser and enter the IP address of your default gateway. This is most often 192.168.0.1 or 192.168.1.1The exact address is indicated on a sticker on the bottom of the router. You will need a username and password to access the admin panel (often admin/admin).
In the router interface, go to the Wireless or Wi-Fi section. The current password will be displayed in the "Password," "Pre-Shared Key," or "WPA Key" field. You can view it and change it to a more complex one.
⚠️ Attention: Router interfaces from different manufacturers (Asus, TP-Link, Keenetic, MikroTik) vary significantly. If you can't find the section you need, consult the official manual for your model.
Resetting your router as a last resort
When you've lost your Wi-Fi password, blocked access to your router settings (your login has been changed), and you need to connect urgently, the only drastic solution is a hard reset. This will restore your device to factory settings.
On the router's body, locate the recessed hole labeled "Reset." Press it with a paperclip or toothpick and hold for 10-15 seconds until the LEDs blink simultaneously. After rebooting, the router will operate with the factory password found on the sticker.
- 🔄 All user settings will be permanently deleted.
- 🔄 You will need to reconfigure your connection type to your provider (PPPoE, L2TP, etc.).
- 🔄 The network name and password will return to the values from the factory label.
- 🔄 Make sure you know your internet access details from your provider.
Use this method only if other options have been exhausted. Reset settings - This is a guaranteed way to regain access, but it requires time to reconfigure the network.
☑️ Ready to reset your router?
Is it possible to find out the password if I have never connected to this network from this laptop?
No, the operating system doesn't store passwords for networks the device has never connected to. In this case, the only solution is to access the router settings, ask the network owner, or use WPS (if supported and enabled).
Is it safe to use third-party password recovery programs?
Using third-party software (such as WirelessKeyView) carries risks. Such programs are often listed in antivirus databases as "HackTools." It's better to use built-in Windows tools (CMD, PowerShell), as they are safe and don't require installation.
What should I do if the "Security Key" field is grayed out and inactive?
This means you don't have administrator rights. You need to log out of your current user and log in to an account with administrator rights, or run the command prompt as an administrator and use the method with netsh.
Where can I find the password on the router itself if I haven't changed the factory settings?
There's always a sticker on the bottom or back of your router. Look for the "WPA Key," "Wireless Password," or "PIN" fields. If you've never changed your security settings, this password will be valid.