Skip to content
Home » Geek Stuff » How to View Saved WiFi Passwords from Command Prompt

How to View Saved WiFi Passwords from Command Prompt

WiFi passwords are something that we set up once during the initial installation and then it’s off for good. Agreed, you can still view your password by logging into your router’s dashboard. However, the technicalities involved make normal users think twice before opting for this method. Although there exist some apps to view WiFi passwords on Android, all of them require a rooted device. To counter such issues, we bring you another useful guide. Using it, you can now view your saved WiFi passwords right from the Command Prompt. You just need to copy-paste two to three lines of code and the password will be in front of you. On that note, here are the steps to Connect to WiFi via QR Code in Android Pie or Earlier Devices

View WiFi Password from Command Prompt

For this guide, we will be using the netsh command. Netsh stands for Network Shell. According to Microsoft, netsh is a command-line scripting utility that allows you to display or modify the network configuration of a computer that is currently running. So let’s take the help of this code to view your saved WiFi passwords from Command Prompt. Also, check out the guide to Recover WiFi Password Using Android Devices.

  1. Search for Command Prompt from the Start Menu. Make sure to run it as an Administrator.
    command prompt admin
  2. Enter the following codes in the command window:
    netsh

    netsh command

  3. Now, you need to get the list of all your saved WiFi networks from Command Prompt. Type in the below code for the same:
    wlan show profile

    show profile

  4. Next, enter the code given below and hit the Enter key. The explanation of this code follows below.
    wlan show profile name=“<WiFi SSID name>” key=clear
  5. WiFi SSID name, in simpler terms. refer to the name of your WiFi network. For example, the name of my network is D-Link_DIR-600M. So the above code, in my case, will correspond to as follows. While entering the Network SSID, keep two things in mind. First, the SSID should be written in double inverted quotes and secondly, they are case sensitive.
    wlan show profile name=“D-Link_DIR-600M” key=clear

    wifi password

  6. Now, head over to the Security Settings section and look out for Key Content. The password in plain text would be written there.

With this, we conclude the guide on how to view saved passwords from the Command Prompt. If you face any issues while carrying out the above steps, do let us know in the comments below. Moreover, as evident from the title, this guide only works for those WiFi networks, whose passwords have been saved on your desktop before.

Read next: How to Forget a Saved WiFi Network in Windows 10

Sadique Hassan

Sadique Hassan

A geek by birth, MBA by profession and blogger by heart, Sadique always has a keen interest in platforms like Android, Windows and everything powered by chips.View Author posts