Command to retrieve in clear the password on WIFI network

Discussion in 'Windows 10' started by coleoptere2007, Oct 1, 2019.

  1. coleoptere2007

    coleoptere2007 MDL Guru

    Apr 8, 2008
    2,688
    1,391
    90
    #1 coleoptere2007, Oct 1, 2019
    Last edited: Oct 1, 2019
    Sometimes we have to find the key of a wifi network in memory in our computer, to transmit it to someone.
    It's hard to remember all the passwords of the networks we connect to, and we do not all have the presence of mind to note them in our password managers.. How to do then ?

    Under Windows
    Under the operating system of Microsoft, first, you will have to open a command prompt and enter the following line, replacing "name of wifi network" by the real name of the network wifi on which you are connected:
    netsh wlan show profile "name of wifi network" key=clear

    Under MacOS
    Open a terminal and type
    security find-generic-password -wa "name of wifi network"

    Under Linux
    Open a terminal and type
    sudo cat /etc/NetworkManager/system-connections/"name of wifi network" | grep psk=

    Can be usefull with complex passwords. Hoping this will help. Nice day. Coleo
     
  2. nodnar

    nodnar MDL Expert

    Oct 15, 2011
    1,052
    755
    60
    the lazy walrus pasts it into cardfile, and saves it as wifi,crd once i start using a router.
    if needed i open wifi,crd; and then it is copy/paste.
    but your recipe is very useful too.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. gundja

    gundja MDL Junior Member

    Jul 6, 2011
    68
    11
    0
    really nice instead of connecting to the router .

    thanks for this tip.
     
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,007
    762
    60
    This can be very usefull. For example if you get a Orange Livebox 5 there is no longer a front panel which can display the wifi key.