How to Know Wi-Fi password using CMD (netsh wlan show networks)

In this day and age of the Internet, the Wi-Fi router and data connection have become a fundamental amenity for every user.

One of the first things that a user does after waking up is to switch on his/her Wi-Fi router while there are some users who never switch off their routers.

The Internet plays such an important role that people use it for completing their day-to-day chores as well as for relaxation.

Considering that Wi-Fi has become a central part of our life, it is quite easy to forget the Wifi password.

You might want to hack it. but there is a simple process to find your wifi password using cmd.

So, here is a simple solution on how to know the Wi-Fi password using CMD of all the connected networks. with netsh wlan show profiles command.

How To Know Wi-Fi Password Using CMD

You may be using many WiFi connections through your desktop or laptop. Sometimes, a situation arises, where you may forget the connected Wifi network password.

First of all, you should remember that whenever you connect to a WiFi network and enter the password to connect to that network, you are actually making a new WLAN profile of that WiFi network.

In essence, every time you make an Internet connection, that particular profile gets stored inside the PC/laptop along with the other required details of the WiFi profile.

In this article, we will be learning how to find a particular Wi-Fi password using the command prompt instead of a Windows GUI.

These steps work even when you are totally offline or you are not connected to the particular WI-Fi profile you are looking the password for.

How to know the WiFi password using cmd using netsh wlan show profiles

  • Open the command prompt and run it as administrator. One of the first things to do is to open the command prompt in administrator mode. In older Windows 7/8.1 run PC/Laptops right click on command prompt and choose Run as administrator from the drop-down menu

command prompt

In Windows 10 run PC/laptops simple click Windows Key + X and run Command Prompt (Admin) directly.

command prompt windows 10

  • In the next step, we want to know about all the profiles that are stored on our computer. For that type following command in the cmd:

netsh wlan show profile

This command will list out all the WiFi profiles that your PC/laptop has ever connected to.

netsh wlan show profile

From the above list, I want to find out the password for NETGEAR13  Type the following command to see the password of NETGEAR13 or any other Wi-Fi profile you want.

netsh wlan show profile WiFi-name key=clear

The result will be something like this

netsh wlan show profile WiFi-name key=clear

Under the key content in security settings, you can see the password. You can use the same command to check and find out the password for each and every profile saved on your PC/laptop.

Turn On Mac Randomization On Windows 10 using CMD

The Command-Line is also useful for further experimentation with WiFi profiles. Besides finding out the Wi-Fi password, you can also use this result to further optimize your WiFi.

For example, Under the profile information, you can see mac randomization is disabled. You can turn on the mac randomization feature to avoid your location tracking based on the device’s MAC address.

Here is how to turn on mac randomization on Windows 10:

  • Go to settings and click on ‘Network & internet’
  • Choose the ‘WiFi’ in the left pane and click on the advanced option.
  • Turn on the ‘Random Hardware Address’ feature under these settings.

wifi

  • Once you have turned this on, your MAC address will be randomly set by Windows making it difficult for anybody to track you using your MAC address.

Sometimes choosing the right channel can increase your Wi-Fi speed substantially and remove interference. You can check out our post on How to increase your Wi-Fi speed by choosing the right channel

Also Read-

Conclusion-

So this was how to know wifi password using cmd (netsh wlan show profiles command). do let us know in the comments below if you know of any other method.

Subscribe to our newsletter

To be updated with all the latest news

37 COMMENTS

  1. how if the name of wi-fi more than one words?
    i can not access the password wi-fi if name of wi-fi more than one words
    thanks

    • this maybe useful if someone wants to connect in a certain WIFI that you have already connect before but you are far away in that WIFI area and your friend is in the WIFI area.
      #just an idea.

  2. Hello! it is showing only a saved wifi profiles in laptop it is not showing a external wifi networks it is a waste of time to do this process

    • Yes dude it has show’s only whenever we connected wifi. If the connected wifi password changed by the delegator then again we can’t connect to that same network so in that case we want to connect with that network we need to follow above steps

  3. The commands worked like a charm!! I could see all the wifi profiles and their passwords !! Although the MAC randomization didn’t work as the advanced option was not available under the WIFI menu… Neverthles Good work !! Keep posting such useful stuff! Kudos!

  4. I don’t get the point of this. One can go to the Network and Sharing Center on the PC, jump through a few clicks and get it.

    If there is an issue with needing the admin password the GUI way then you won’t be running CMD as admin as they’re both protected by the same password.

    If this is to get your friends wifi password because they won’t share it, then the user is missing the point of what a wireless profile is.

    If it’s an issue of remotely connecting to it through another PC where you must use commands, then the connection issue is not password related.

    If it’s a locked down computer that has NSC removed from the common user, then CMD shouldn’t be there either unless the admin is a failmin.

    If you wake-up to find it not connecting because of a failed authentication, then the password was changed either on the PC or the router and retrying the failing password won’t work.

    If you’re remotely helping someone reconnect to a network that you’ve previously connected to, then sure, the password can be recovered this way. However, their issue might have a better chance at being resolved by having them use the default password printed on their router to get them connected or by paying them a visit.

  5. I do not have wireless, I have a desktop hooked directly to the WiFi, so how can I find the password THIS way? O_O

  6. This is of no importance since you already the password. It could have been better if the idea was to see the password of the available wi-fi networks.

  7. SImple Use Case:
    You want to know the password of your neighbour who has fast wifi.
    He doesnt tell you.

    now tell him you are computer savyy and you can resolve his computer problem
    then
    once in front of his pc, simply run

    netsh wlan show profile name=”HIS_WIFISSID” key=clear

    this way you could get the key and from now on surfe for free and fast.

  8. dude not working thie idea ..it give these options …….. what did i do.

    C:\WINDOWS\system32>netsh wlan show profile SBC Pvt Ltd.(Sarfraz Khan) key=clear
    One or more parameters for the command are not correct or missing.

    Usage: show profiles [[name=]] [interface=] [key=]

    Parameters:

    Tag Value
    name – Name of the profile to display.
    interface – Name of the interface which has this profile configured.
    key – To display the key in plain text, set key=clear.

    Remarks:

    Shows the profile data or lists the profiles on the system.
    Parameter name and interface are both optional.

    If profile name is given then the content of the profile will be
    displayed. Otherwise only profile name and description will be listed.

    If interface name is given, only the specified profile on the given
    interface will be listed. Otherwise, all profiles with the given name
    on the system will be listed.

    If key is set to “clear” and the caller is local administrator,
    the key will be shown in plain text.

    Group Policy Profiles are read only. User Profiles are readable and
    writeable, and the preference order can be changed.

    Examples:

    show profiles name=”profile 1″ interface=”Wireless Network Connection”
    show profiles name=”profile 2″
    show profiles name=”profile 3″ key=clear
    show profiles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Subscribe to our newsletter

To be updated with all the latest news

Read More

Suggested Post