Retrieve Wi-Fi Password On Windows, Mac And Linux

Retrieve Wi-Fi Password On Windows, Mac And Linux

Macintosh Tips & Tricks Windows

To avoid others stealing our Wi-Fi bandwidth we often use a strong password to protect it. What if, you want to connect a second device to the Wi-Fi and forget the password? Happens with a lot of us! How can you find the password? Of course, it’s not advisable to write it down somewhere.

Well can we retrieve it? The answer is YES! In case you are unable to connect with the Wi-Fi you can try the command prompt to retrieve the password. In this article, we will discuss simple steps using which users with Windows, Mac or Linux will be able to recover saved password.

Forgetton password

How To Search For A Wifi Password On Windows

To do so you need to follow the simple steps explained below:

  1. Type cmd in the search menu and right click on it to Run as Administrator.
    cmd run as administrator2. Here, enter the command as shown below and press enter to view WiFi password.

netsh wlan show profile name=labnol key=clear

command prompt3. Under Security Setting section you will be able to see the password (refer to the screenshot below)

To see the complete information, use the findstr command:

netsh wlan show profile name=labnol key=clear | findstr Key


In case you are unable to see the password, it seems that you have not opened the command prompt as administrator.

Must Read: 3 Quick Ways To Delete Saved WiFi Network On Windows 10

Run Wlan Autoconfig (Wlansvc Service)

While using the command to retrieve password on Windows, if you receive a message that reads “The Wireless AutoConfig Service (wlansvc) is not running” – use the following fix to get it working:

In the Search bar enter “services.msc” to access Windows Services. Here look for WLAN Autoconfig service in the list of services and ensure that it is Running. If it is not running right-click WLAN AutoConfig service, select Properties and go to Dependencies. Here look for all the dependencies and make sure they are running.

This will help to see the Wi-Fi password.

Must Read: Here Is How Facebook Helps You Track Nearby WiFi Spots

How To Retrieve Wifi Password On Mac OS

Mac OS uses Keychain to save Wi-Fi configuration details. To see the details stored in keychain including Wi-Fi password we will use BSD command “security”.

To do so follow the steps below:

1. Press Cmd+Space to open spotlight. Here type terminal to launch the Terminal window. In the command line, enter the command mentioned below:

security find-generic-password -wa lab
Replace lab with the name of your Wi-Fi and to access keychain enter Mac username and password. Here, in plain text you will be able to see password of your Wi-FI network.

How To Search Wifi Password On Linux

The same trick will work to reveal the Wi-Fi password on Linux. Replace lab with the wireless name (SSID) of your network. The value you see under psk field is WiFi password.

sudo cat /etc/NetworkManager/system-connections/lab | grep psk=

In case you are not sure about the network name you can use the following command:

sudo grep psk= /etc/NetworkManager/system-connections/*

search wifi password on linux

These tips will help recover your forgotten saved password so that you can connect more devices with the Wi-Fi.

Next Read: How to Share Wi-Fi Password on Your iPhone in iOS 11

Is this page helpful?

Leave a Reply


View Offer Close