How To Find Passwords of All Connected Wi-Fi Networks using CMD

Windows command prompt is a great tool for the people who love command interface rather than Graphical UI. There are a lot of features which are still not implemented in Graphical User Interface can be accessed via CMD. In my previous articles, I’ve talked about a lot of CMD commands. In this article, I am going to share how to find out the password of all connected devices using CMD along with suitable screenshots for clear understanding.

Read: 15 Important Run Commands Every Windows User Should Know

Before going further, you should know one thing that whenever you connect to a Wi-Fi network and enter the password,  Windows creates a WLAN profile of that Wi-Fi network. These WLAN profiles are stored in the computer alongside other required details of the Wi-Fi profile.

We can uncover these WLAN profiles later by simply using Windows CMD. You can find out all the connected networks and their passwords by using simple commands. These commands can also uncover the Wi-Fi passwords of the networks which are not connected at the moment but were connected before. So it works even when you are offline or when you are connected to any other networks. The trick just has no limitations and it’s reliable enough.

There are a lot more things you can do with CMD for Wi-Fi networks. For example, you can turn on MAC randomization, change radio type of your Wi-Fi and much more.

How to know Wi-Fi passwords using CMD?

You can open the CMD in Windows 10 by right-clicking on Windows icon.

1. Open command prompt and run it as administrator

Once you open the Command Prompt as Admin, you will have to type this command without quotes “netsh wlan show profile

Find Wi-Fi passwords of all networks using CMD - 1-compressed
This command will return the list of all the Wi-Fi networks that you have ever connected to.

From the following list, Let’s find Wi-Fi password for network “virus”.

2. Type this command without quotes “netsh wlan show profile virus key=clear”

Find Wi-Fi passwords of all networks using CMD - 2-compressed
This command will show you the complete profile of wireless network along with its password

Under security settings, in key content, you can see the Wi-Fi password for that network. I hope you found it useful. If you’ve any problem, you can comment down below.


I am an entrepreneur at heart who has made his hobby turned passion, his profession now. I love writing about coding, hacking, open-source and cutting-edge technologies.


    • Avatar

      If remember right . Before you open cmd u right click on it and select run as admin… to right click on it have it pinned to the decktop as a icon.

    • Avatar
      Vicky Singh Rao Reply

      Right click on Command Prompt > Run as Administrator

    • Avatar

      In command it write virus. you will write the name of wifi name in your network.

  1. Avatar

    but these are the passwords of wifi u already connected to cant we know a pass of an unknow wifi ?

  2. Avatar
    siva sandeep vallem Reply

    Win + R —–> ncpa.cpl —–> wifi device —– > right click —–> status ——-> wireless properties —– > seecurity ——> SHOW PASSWORD.

    • Avatar

      The command is just to see the wifi password ever connected on the computer, lol

  3. Avatar

    What if you are not connected in their wifi before? Because I tried and of course the only profile that came out is the one that I connected to. Any tips on how to add profile?

    • Avatar
      Aditya Mundhalia Reply

      I can use kali linux. And use buteforce with good word take around 3-7days if you are lucky. You can google hydra bruteforce to know more.

  4. Avatar

    When i run the second command, the error mention ” profile virus is not found on the system” . How to solve it?

  5. Avatar

    not that useful bcoz it onlh show those network which are connected with me in past. It doesn’t show current wi fi available around me.

  6. Avatar

    not that useful bcoz it onlh show those network which are connected with me in past. It doesn’t show current wi fi available around me.
    so tell me how to get the password which are around me.

  7. Avatar
    Travis Clark Reply

    How can I prevent this? On a work PC having the administrators which is everyone on my team having access to see my personal wifi password isn’t ideal. Can it be stored differently or encrypted?

    I also see the personal wifi passwords of those people that used the laptop before I got it. Yikes.

    • Avatar

      I don’t think any other way is available since being an Administrator will have all the privileges.. One way, may be, is don’t store the password and connect manually every time…

  8. Avatar

    yes how do you get a wireless network password for a device you have never connect to before, that is not listed under any of your pc profiles?

  9. Avatar

    Can we crack password of any wifi network without connecting ? With the help of cmd ? If possible the please tell!!!

  10. Avatar

    How about profiles that has space on them ? Like “my network”

  11. Avatar
    Basirein iradukunda Reply

    hey, i am very proud to this ssysten youve released to teache us more about computer science.
    today i am trying whatever you post, but anyway some are found to be not successfully plz helm me to know why?
    question is concern with reseting admininstrative password:i am just tried but when i reached to the step of opening command prompt(wind+r ) nothing dispalyed.that is however i press window nothing i see ,what is the problem?plz help me ia m your best followers

  12. Avatar
    Basirein iradukunda Reply

    second question is wifi password ,when i type netsh wlan show profile, result is teeling that my computer reply me that|”the wireless autoconfig service is not working” what can i do?

  13. Avatar

    How do I know the password for one I haven’t connected to before??

  14. Avatar
    Muzammil Husaain Reply

    What about the user name with a space character like “Ali Ahsan”.

  15. Avatar

    I can’t do it with the profile has multiple words (they have a space or more in their name). The result is “There is no such wireless interface on the system”. Please show me how to find the password of these kinds of wifi.

  16. Avatar
    Pavangopal Reply

    Missing parameters
    Show profiles [[name=]] [interface=] [key=]

  17. Avatar

    It works for single word passwords only, what if there are multiple words passwords with spaces?

    • Avatar

      use it in Quotes for Multiple Words like profile=”VIBE K4 NOTE” instead of VIBE K4 NOTE

  18. Avatar

    how can I use a mac book with the same cmd or is there another cmd fr mac books

  19. Avatar

    i dont see the password
    security key present
    nothing show anything.

  20. Avatar

    please tell me how i change cmd languiche from frensh to english

  21. Avatar

    Oh. It actually work. Thanks for the info. I was able to connect to my neighbor’s wifi. Better than existing wifi crackers like kali.

  22. Avatar
    evans taylor Reply

    mine says “There is no such wireless interface on the system

  23. Avatar

    hey, it isn’t work. see. it will be :

    C:\Windows\system32>netsh wlan show profile virus key=clear
    Profile “virus” is not found on the system.


    so how?

  24. Avatar

    it will be better if you can come up with a way to connect to a wifi you haven’t been connected to before

  25. Avatar

    zac,replace the virus with the name of the WIFI you want to use.

  26. Avatar
    pseudor00t Reply

    no tiene nada de inseguro por todo lado queda registro del password del wifi, yo considero que es mas unos comandos para administradores de sistemas en cuestion de facilidad y recursividad.

  27. Avatar

    What about…

    Security settings
    Authentication : Open
    Cipher : None
    Security key : Absent
    Key Index : 1

    Cost settings
    Cost : Unrestricted
    Congested : No
    Approaching Data Limit : No
    Over Data Limit : No
    Roaming : No
    Cost Source : Default


  28. Avatar
    M Ubaidillah S Reply

    It say “There is no such wireless interface on the system”
    How to fix that ?

    • Avatar

      Make sure you have not disabled your WiFi system on your machine

  29. Avatar

    Hey this gig works good. But if someone changes the wifi paasword to which i connected earlier, how can i retreive the new paasword coz the wlan profile shows only the password that was set at that moment when i connected not the updated one.

  30. Avatar
    shubchintak Reply

    By using this procedure i cannot connect to the network to which i have never connected.Because the command shows only the wifi that i have connected so far……..

  31. Avatar

    User profiles
    All User Profile : aaay
    All User Profile : Smart Bro_9DF135
    All User Profile : awawaw
    All User Profile : System.dll
    All User Profile : PLDTHOMEDSL
    All User Profile : SHESHE
    All User Profile : potaka
    All User Profile : PLDTMyDSL
    All User Profile : EyvesEyves
    All User Profile : B315_4FCB1
    All User Profile : HAHAHAHAHA
    All User Profile : YUSHA
    All User Profile : GWAPA
    All User Profile : cLabNet
    All User Profile : NDKC GYM
    All User Profile : just for me
    All User Profile : NDKC Lobby 2
    All User Profile : BuyYourOwnWifi
    All User Profile : shooting star
    All User Profile : NDKC iGate
    All User Profile : Smart Bro_5E9EEB
    All User Profile : Smart Bro_9DC3 2
    All User Profile : PLDTHOMEFIBRSSantos
    All User Profile : KMSCI*ns2
    All User Profile : KMSCI*ns4
    All User Profile : shingshang
    All User Profile : Linksys00336
    All User Profile : HUAWEI-E5330-CF2C
    All User Profile : blaaaaa
    All User Profile : CMRE Wifi
    All User Profile : MWifi
    All User Profile : NDKC Lobby
    All User Profile : WFSEP
    All User Profile : lalat
    All User Profile : Hotspot
    All User Profile : CMRE
    All User Profile : MANOK KA BA
    All User Profile : Smart WIFI
    All User Profile : SHAWARMA
    All User Profile : shawarma2
    All User Profile : PLDTMyDSL_VONGWAPO
    All User Profile : BjIr-aGF6ZWxjaHVjaGE
    All User Profile : Smart Bro_9DC3
    All User Profile : ROCK N ROLL
    All User Profile : PLDTFIBR_13f348
    All User Profile : HUAWEI-E5330-7DD1
    All User Profile : PLDTHOMEFIBR_81c0a0
    All User Profile : ky gutzer ni
    All User Profile : NDKC ITLab2
    All User Profile : HUAWEI-E5330-5CF5
    All User Profile : KMSCI*ns3
    All User Profile : Smart Bro_B9E687
    All User Profile : NSTPwifi
    All User Profile : NDKC Library
    All User Profile : NDKCLabWiFi
    All User Profile : SCNHS Student Wifi
    All User Profile : FREE_WIFI
    All User Profile : N5200 AP
    All User Profile : NDKC NetworkLab
    All User Profile : EMCOR CITP

    C:\WINDOWS\system32>netsh wlan show profile virus key=clear
    Profile “virus” is not found on the system.

    sir why is it like this?

  32. Avatar

    Sir, Key content is not there…only 5 option are presnt in Security setting

  33. Avatar

    please how do I get the window command prompt or window cmd on my pc

  34. Avatar

    and what about WiFi you have never connected to how to change WiFi IP address when you have been blocked

  35. Avatar

    How to know connected clients’ IP Address?

    Some persons frequently hacks my WiFi password.

  36. Avatar
    Raj vardhan Reply

    Dude I try with Administration nd without administration. It shows me User Profile

  37. Avatar
    Black Monster Reply

    Oh Hi Its working But is showing my old password not current password

  38. Avatar

    eyerything had done but password is not showing its only show key index not key content.
    now what can i do to get password

Write A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.