Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How to Recover a Wi-Fi Password in Windows 10 and 11

Have Windows show you what it remembers.

Forget your Wi-Fi password?
(Image: canva.com)
If you forget your Wi-Fi password Windows may be able to remind you what it is.
Applies to Windows: 11, 10
Question: I connected to my WPA-protected Wi-Fi network ages ago, and now I can’t remember the password. How do I figure out what it is?

It’s common to set up a wireless network securely and then get on with your life, neglecting to save the encryption password you created.

Later, when it comes time to add another device, you’re unable to remember that all-important password.

It’s so secure, even you can’t get in!

There are two approaches you can take.

Become a Patron of Ask Leo! and go ad-free!

TL;DR:

Recover a Wi-Fi password

If you’ve connected to a Wi-Fi network once and allowed Windows to remember it, you can have Windows tell you the password with a simple command-line command: “netsh wlan show profile <profile name> key=clear”.

The traditional approach: set a new password

If you forget the Wi-Fi password, the traditional approach is simple, yet cumbersome.

Simple:

  • Sign in to your router or access point’s administrative interface.
  • Set a new Wi-Fi password. (Maybe save it somewhere this time. Smile)

Cumbersome:

  • Now go visit every device connected to your wireless network, and reconnect them using the new Wi-Fi password.

Conceptually very easy, but if you have a lot of devices, it can be a pain.

Get the Wi-Fi password remembered by Windows

Fortunately, if you have a Windows device connected to your wireless network, you can have it show you the password. It’s not as simple, but a lot less cumbersome.

If you know the name of the wireless network you’re connected to, you can skip this first step.

Step 1. Run Command Prompt or PowerShell, either will do; and type in the command:

netsh wlan show profile

Picking the command apart:

  • netsh is the “networking” shell, a repository for several networking and non-networking functionalities.
  • wlan indicates that the following command is about the wireless LAN.
  • show is a command to display information.
  • profile refers to the information to be displayed; in this case, a list of all known wireless LAN profiles or names.

An example of the result:

Remembered Wireless Networks
Remembered wireless networks. (Screenshot: askleo.com)

Hopefully, that will jog your memory about which network you want the password for.

Step 2. Once you know the name of the wireless connection, enter:

netsh wlan show profile <profile name> key=clear

In addition the parameters explained above, we’ve added:

  • <profile name> – replace this with the name of the network whose password you’re looking for.
  • key=clear indicates that the password or “key” should be displayed in clear text, rather than being indicated as simply present or not.

An example for my askleo.com/hotspot wireless network:

The wireless password used for a specific network.
The wireless password used for a specific network. Click for larger image. (Screenshot: askleo.com)

Here, I’ve obscured the actual password. In reality, it was displayed in plain text.

Do this

You might want to save the password somewhere for easier access next time. Though if you don’t, you should be able to recover it using these instructions.

Something else you might want to do is subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

Podcast audio

Play

25 comments on “How to Recover a Wi-Fi Password in Windows 10 and 11”

  1. Here’s how I never suffer from this problem. Whenever I get a new “anything” that requires a password, I write it down on a piece of paper and when I am finished setting up, I open an encrypted spreadsheet stored in Dropbox and add a new line for that device or account with all the relevant info, not just the password but account number, email login, secret question answers and any other relevant info. Just remember to also record any changes you make as soon as they happen.

    Reply
    • Password managers like LastPass are also a good place to keep this information. They often have a “secure note” feature where you can keep any information you like.

      Reply
      • Yes I agree defiately would use LastPass which is encrypted which won’t be the same in dropbox making using Dropbox much less secre.

        Reply
    • I downloaded it and tried it out. It showed several LAN passwords, but the funny thing is, the computer I tried it on is a desktop which connects via LAN cable, not WIFI. The logins were done on my laptops, some even in other countries. Those laptops were turned of when I ran this, so it can’t be something over the network. Does anybody have an idea how something like this can happen?

      Reply
        • Ahhh, that explains it. They were all stored with my Windows account. I don’t know whether to be happy that I can use any Win 10 machine on those routers, or scared that Windows 10 is storing my routers’ passwords unencrypted on their servers :(

          Reply
          • The moral: we have no clue what information our devices are collecting or where or how that information is stored and shared.

          • I feel Microsoft has gone too far with that one. Well, now my go everywhere machine is Linux. I still need one Windows machine, not because of any proprietary programs. I just need to keep my Windows knowledge up to date for my work on Ask Leo!

          • To be fair, there’s no reason to assume they’re stored unencrypted; you were able to access them while logged into your account, which means that you’d already passed a username/password challenge (or whatever else your Microsoft account is set to use).

          • One reason I fear that they unencrypted is the fact that a third party program showed them. I have a hard time believing that Windows decrypted them.

          • It could be encrypted to non-logged in users. Encrypted using some account information that’s available on when the user logs in.

    • I used the magical Jellybean Wifi password finder, and it saw all the wifi points I have access to, but did not find one password. I then downloaded the non Wifi PasswdFinder, and it did find 3 of my passwords to some websites I access through ms-ie, but that was it. I feel I am doing a great job on keeping my system secure, if that is all it could find. I do the save password to a protected excel doc that I backup to multiple places (only need to memorize 1 password, although I do know many that I use more often). I don’t usually let any system save my password, because if a program like this can get at it, then someone else can maybe get at it through some nefarious means. Am I overly cautious? You betcha! Especially after I see all these companies that get their customer list passwords lifted.

      Reply
  2. The option to show characters was greyed out in Vista. I’m guessing that my dad set up my mom’s laptop with a limited user account since my mom is not so computer savvy. Now without access to an administrator account, I can’t get in to see if it would work. We ended up setting up a new password and reconnecting mom’s laptop.

    We also connected my Windows 7 laptop on to mom’s Wi-fi, so if the password ever gets lost again, I can find out the password. Show characters works well for me.

    Reply
  3. When I got to this step, “Right-click on the icon representing the machine’s wireless network connection, and click on Status,” Status is dimmed.

    Reply
  4. I simply go to the wireless router provided by att and the password is preprinted on the label. No reason to change it when you install. It’s very secure.

    Reply
  5. HI leo
    I have a question regarding my gmail. I have a laptop as well as a desktop PC. Up until a few days ago I could access my Gmail account from either computer using the same password. But now , suddenly, I can only access my mail on only one computer. I had to change the password at first, and then it worked. However, when I tried to get into my mailbox on the other one, I was told it was the wrong password. So I tried to use the new password I used on the other machine, but it wouldn’t let me. I had to enter another new password which allowed me to access the mailbox. But now I couldn’t get into the other one, So what is going on, and what am I missing here? How do I get back to being able to use both computers with the same password like I did originally? Forget about trying to contact Google! The only way I can is to answer the questions that come up while changing passwords. Then I click on where it asks you to get a Code to verify that it is really you, which I did, each time, like maybe 4 or 5 times! I finally gave up. I am frustrated to say the least. Can you help me to get this sorted out please? I would be extremely thankful! Perhaps many others out there are experiencing the same thing, and your answer would benefit them as well.
    Thank you in advance.

    Reply
    • What you’re describing shouldn’t happen, of course. But you’re not providing enough information to narrow down the problem. I assume you’re using a browser to access you gmail, as opposed to an email application, such as Outlook or Thunderbird. Here are a some things to try to narrow down the problem: Clear your browser cache and cookies, and clear any “save password” feature of the browsers. Try a different browser on the machine where you can’t get into gmail. Try on a third computer. Have you recently changed settings on your gmail account or browsers? Check back to see what you may have changed. One thing that could have occurred is that somehow you got into using an “app-specific password” on your Google account, although that should not impact accessing gmail from a browser. You can always try reinstalling your browser. If you haven’t re-booted your computer, like forever, try rebooting. If you’re using Windows 10, then who knows what could be happening. Of course, there is the possibility that your account could have been hacked. Good luck.

      Reply
  6. If the device is still connected or if you can connect by hardwired ethernet, just go to the wireless section of the router/ap control panel and read what the passphrase is.

    You find out what the IP address is by the ipconfig command in a command prompt window. You will get something like 192.168.1.23 and a default gateway of 192.168.1.1. Typically the gateway is the router. Then you type this address in to your web browser and the control panel login comes up. Other typical addresses might be 192.168.0.1 or 192.168.254.254. See http://www.techspot.com/guides/287-default-router-ip-addresses/ The login username and password is typically admin and admin, or admin and password, or admin and a blank password.

    Reply
  7. As a side on WiFi passwords or passcodes, when I log in to my Verizon FIOS account, the internet information actually shows my passcode in plain text. I don’t think this is a good idea, There should be no reason for the Verizon techs to have this. Verizon first said just change it. I did, and it now shows the new one. Is this common with other providers?

    Reply
    • This is a recent industry “security” attitude. So, a few years back some people decided that masking passwords “slows down” logging in and causes incorrect passwords to be typed in because there was no visual feedback. They also reasoned that when you mask a password it’s clear indication that what you’re typing is a secret, so it attracts bad guys. They said that masking passwords promotes copy and paste of passwords, which for some reason is not a good thing. They believed that the chances of someone standing behind you and memorizing your password as you type is nil. Some of them just plain didn’t like a legacy design. This thing got so overdone that some websites no longer provided you an option to confirm a new password entry when registering because, as the rationale goes, if you can see your password being typed you won’t need to enter it a second time to confirm it.

      If all these “rationales” seem ridiculous, it’s because they are. The computing security industry is just like any other. They need new, fresh and radical ideas to keep the consumer engaged, just like the new trend in “passwordless” login (which is a term that’s confusingly applied to everything from multifactor authentication, to biometrics, to entering a pin that looks like a password but is not called that ).

      In any case, in whatever browser you’re using there should be a button, logo or link to turn off the password visibility.

      Reply
      • The programs and websites that do it right allow you to click an icon to view the password. Best of both worlds. When I’m at home, I’m happy to be able to view the password, but away in a coffeeshop or on a train, I prefer it hidden. I use LastPass which has that feature so, unless I’m creating a new login, I only ever have to type in the LastPass password.

        Reply
  8. I tried the shell command and got this returned:
    “The Wireless AutoConfig Service (wlansvc) is not running.” (Windows 10)

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.