How to Find the Wi-Fi Password of your Current Network

H
Published in: Apple Mac - Networking - Password - Wi-Fi

Your computer is connected to a Wi-Fi network but you do not remember the password that you had earlier used to connect to this particular WiFi network. Maybe you forgot the password or maybe the network administrator entered it directly without revealing the actual password to you.

You would now like to connect a second device, like your mobile phone, to the same WiFi network but how do you find out the password? You can either send a password request the WiFi admin or you can open the command prompt on your computer and retrieve the saved password in one easy step. The technique works on both Mac and Windows PCs.

Find the WiFi Password on Windows

Open the command prompt in administrator mode. Type “cmd” in the Run box, right-click the command prompt icon and choose Run as Administrator (see how). Now enter the following command and hit enter to see the WiFi password.

netsh wlan show profile name=labnol key=clear

Remember to replace labnol with the name of your Wireless SSID (this is the name of the Wi-Fi network that you connect your computer to). The password will show up under the Security Setting section (see screenshot).

If you would only like to see the password and not the other information, use the findstr command:

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

If you do not see the WiFi Password If you do not see the password, probably you’ve not opened the command prompt window as administrator

Show the WiFi Password on Mac OS X

Your Mac OS X uses Keychain to store the configuration details of the WiFi network and we can use the BSD command “security” to query anything stored inside Keychain, including the Wi-Fi password. Here’s how:

Open Spotlight (Cmd+Space) and type terminal to open the Terminal window. At the command line, enter the following command (replace labnol with your WiFi name), then enter your Mac username and password to access the OS X keychain and the Wi-FI network password would be displayed on the screen in plain text.

security find-generic-password -wa labnol

Reveal the WiFi Password on Linux

This trick for getting Wi-Fi passwords works for Linux too. Substitute labnol with the wireless name (SSID) of your network. The value of the field psk is your WiFi password.

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

If you don’t know the network name, use the following command.

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

WiFi Password for Mac OS X

Start WLAN AutoConfig (Wlansvc Service)

If you are using this technique to retrieve the WiFi password on a Windows computer but getting an error that says - “The Wireless AutoConfig Service (wlansvc) is not running” - here’s a simple fix:

Click the Windows Start button and type “services.msc” in the Run box to access Windows Services. Here go to the WLAN Autoconfig service and make sure that the status is Running. Else right-click the WLAN AutoConfig service, select Properties and go to Dependencies. Check all the dependencies to make sure they are all running.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Apple Mac - Networking - Password - Wi-Fi

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
A
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account
G

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube