Security Windows

How to Find and Change Your Wi-Fi Password on Windows 10

Ben Stegner Updated 30-05-2019

Once you’ve set up your wireless router and connected all your devices, you probably don’t worry about your Wi-Fi password much. But what happens when you need to get a new device online or make a Wi-Fi password change?


We’ll help you figure it out. Next time you wonder what your Wi-Fi password is, follow these methods to dig it up.

How to Find Your Wi-Fi Password Using the Command Prompt

The Windows Command Prompt makes it easy to run all sorts of tasks. In our case, you can use it to run a script that allows you to check what your Wi-Fi password is at any time.

You’ll need to create a simple batch file How to Create a Batch (BAT) File in Five Simple Steps This article covers how to create a batch file using five simple steps for the Windows operating system. Read More that will let you know your Wi-Fi password. This might sound complicated, but don’t worry. Even if you’re new to the command line, the whole procedure takes just a few minutes, and you won’t break anything by doing this.

To proceed, you will need to know the SSID of your network, which is your Wi-Fi connection’s name. To confirm this, click the network icon in your System Tray and confirm the network name you’re connected to. You can also go to Settings > Network & Internet > Status to find it.

Windows 10 Network Status


Creating the Batch File

To create a batch file that finds your Wi-Fi password, first search for Notepad on the Start Menu. Once you have it open, paste the following text into Notepad. Replace YOUR_SSID with the name of your network that you found a moment ago, making sure it’s in quotes.
<prenetsh wlan show profile name="YOUR_SSID" key=clear

Now, select File > Save As. At the bottom of the window, you’ll see a Save as type dropdown field. Change this from Text Documents to All Files.

In the File name field, you can call it whatever you want—perhaps Find-Wi-Fi-Password or something. Just make sure the file ends with .bat. Choose a convenient location for the script, then click Save.

Now, when connected to your wireless network, double-click this file. Doing so will fire up a Command Prompt window that shows some information about your network. You’ll find your password next to Key Content.


Windows 10 Batch File Wi-Fi Password

Note that this method does not let you change your Wi-Fi password. We’ll see how to do that shortly.

How to Find Your Wi-Fi Password via Windows Settings

If you don’t want to create a batch file, you can navigate through some Windows menus to find your Wi-Fi password. The downside is that it requires many clicks each time you want to do it.

To start, head to Settings > Network & Internet > Status. On this page, scroll down and choose Network and Sharing Center. You can also access this through the Control Panel if you prefer—just search for it via the Start menu.


In the Network and Sharing Center window, you should see a link with your current network name next to Connections. Select this to open a new dialog with info about your Wi-Fi network.

Windows Network Sharing Center

Select the Wireless Properties button for yet another new window. Here, switch to the Security tab. You’ll see a field labeled Network security key.

Click the Show characters checkbox to reveal your Wi-Fi password. You may be prompted for administrator credentials to do this.


Windows Show Network Password

Note that you can change the text in the Network security key field, but doing so will not change your Wi-Fi password. Instead, changing this field adjusts the password that Window uses to connect to your network.

Assuming that your connection is working properly, you should only change this text if you’ve mistyped or changed your Wi-Fi password. If you make changes to this field, you won’t be able to connect to Wi-Fi until you fix it.

How to Change Your Wi-Fi Password on Any Computer or Laptop

Both of the above methods are great for figuring out your Wi-Fi password, but they don’t let you change it. If you want to change your Wi-Fi password, you’ll need to actually log into your router and make the adjustment there.

There are several good reasons for changing your Wi-Fi password. Perhaps you’ve used a weak password in the past and want to make it something stronger. Maybe someone you no longer trust has the password and you don’t want them to access your network. Whatever the case, it only takes a few moments to set it to something different.

To log into your router, you’ll need to know its IP address. The easiest way to do this is by right-clicking the Start button and choosing Command Prompt or Windows PowerShell. Type the ipconfig command, and you’ll see a list of information. Your router’s IP address is listed next to Default Gateway.

Router IP Address

Enter this IP address into your browser, then you’ll need to log in. This is a different password than the one you use to connect to your network. If you haven’t changed it, it’s probably something generic like password or admin.

A quick Google search for your router’s model number will help you figure out the default password. Because of this, you should change the password immediately in order to make your wireless network more secure 7 Simple Tips to Secure Your Router and Wi-Fi Network in Minutes Is someone sniffing and eavesdropping on your Wi-Fi traffic, stealing your passwords and credit card numbers? Would you even know if somebody was? Probably not, so secure your wireless network with these 7 simple steps. Read More .

Once inside, the exact instructions will depend on your router model. Generally, you can look for a section like Wireless or WLAN, which should have the option to change your network password, among other features. Speaking of which, why not choose a new funny Wi-Fi name 50 Funny Wi-Fi Names to Impress Your Neighbors A good WLAN name makes it easy to find your own network, but a funny Wi-Fi name is entertaining for everyone around you. Read More to give your neighbors a laugh?

Router Wireless Passphrase

Note that once you change your Wi-Fi password, you’ll need to enter the new password again on all your devices to reconnect them.

Changing Your Wi-Fi Password, Made Easy

Now you know how to find and change your Wi-Fi password on Windows. It’s not difficult to reveal your password if you forgot it, and changing it is just as simple. Of course, this method won’t work unless you’re already connected to the network with the correct password.

Remember that you should keep your Wi-Fi password stored somewhere safe. If you have trouble remembering passwords, we recommend using a password manager. Find out what password manager is best for you The Best Password Managers for Every Occasion Struggling to remember your increasingly elaborate passwords? It's time to rely on one of these free or paid password managers! Read More .

Image credit: Shutter_M/Shutterstock

Related topics: Password, Wi-Fi, Wireless Security.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Quippie
    December 1, 2017 at 2:29 am

    The command prompt won't stay open after I double click the file, so I can't see the key content. Any clue how I can get around this?

  2. Arun Chandran
    August 29, 2016 at 2:57 pm

    my wifi got into hidden network how to find the user name and password

  3. Arun Chandran
    August 29, 2016 at 2:56 pm

    hi my got into hidden network .how to find the network name and password

  4. Riya
    June 9, 2016 at 10:27 am

    Thank you!
    Cheers I did it!
    changing my wifi password was really very simple
    thanx once again :)

  5. rock
    February 13, 2016 at 9:22 am

    I have a wifi but i dont know the password. It is directly connected to my pc through ethernet cable which doesnt require user id and password. moreever my pc doesnt have wifi can i find the user id and password of my wifi? plz help me out

  6. Anonymous
    July 29, 2015 at 5:23 pm

    hi I'm wondering if I can locate my wifi password on this site for my home wifi because when the tect came to my home to hook up my internet I had to be at the doctor's. So I had my father come to my house, and the tect set up my wifi and put in his own code and I have no idea what it is? And now the only thing that works is my laptop. My t.v. Has been messing up and going in and out when I'm watching a t.v. Show saying its not hooked up to the broadband its got a bad internet connection it won't let me connect on my iPhone nothing and I've called the company and they wanted to charge me to change it! And I told them they was nutts because I wasn't the one who even put the password in to begin with I could understand if I set it up and just forgot it. Then yes I would have paid but in this case no. So I'm sorry for writing you a book here but I'm just really wanting to know if this will work because I've tried everything else for the past 2 weeks and thank the good lord above I came upon your beautiful website so can you please help this poor Indian out?

  7. Lucknat Anthony
    May 23, 2015 at 10:03 pm

    Yea me too I what to know how to hack my working place wifi password, I can't access it because the computer runs on administrator and also connect to cable! not wireless

    • Mihir Patkar
      May 25, 2015 at 6:35 am

      We don’t offer advice on doing something you are clearly not intended to do. If you want to hack your wi-fi password, there are plenty of sites that will tell you how to, but we do not condone such behaviour.

  8. haseeb
    May 13, 2015 at 1:49 pm

    i m waiting plzzzzz tell me anyone/.................

  9. haseeb
    May 13, 2015 at 1:48 pm

    can any person tell me how to i hack password or get password any wifi

    • Mihir Patkar
      May 25, 2015 at 6:25 am

      We don't offer advise on doing something you are clearly not intended to do. If you want to hack your wi-fi password, there are plenty of sites that will tell you how to, but we do not condone such behaviour.

  10. Victor
    February 16, 2015 at 2:07 am

    I don't believe you can CHANGE you password from that location, right? You change the saved password, but the main password controls are still in the router controls if I remember correctly. If you change the saved password you will get authentication problems.

    • Mihir Patkar
      February 17, 2015 at 3:09 pm

      Oh no no, not the router password, you can change the password on your computer through the above steps.

  11. gamerzzz
    February 14, 2015 at 12:46 am

    Thanks. You screwed up my connection and now I can't game cuz the old lady next door has teh suck wifi.

    • Mihir Patkar
      May 25, 2015 at 6:27 am

      Not sure what you mean by that. Could you elaborate?

  12. Mihir Patkar
    February 13, 2015 at 7:46 pm

    Nope, you need to be first signed in to the Wi-Fi. With these solutions, you can look up the password you have already used to sign in; it won't show you a random password from someone else.

  13. PatL
    February 13, 2015 at 6:48 pm

    Does this mean anybody within range can find your password?

  14. Rob
    February 13, 2015 at 2:54 pm

    Thx Dave, this way it works now. However, I don't get the line with Key Content in the output.
    Any clues?

    • Lou
      February 13, 2015 at 4:29 pm

      You need to run the .bat as an administrator to get the Key Content

    • Mihir Patkar
      February 13, 2015 at 7:49 pm

      Are you running it as administrator?

  15. kl
    February 13, 2015 at 12:50 pm

    is there a way to do this under android? under IOS?

    • Chinmay S
      February 13, 2015 at 1:18 pm

      1) Open browser in Android/iOS and then enter "", most probably you will be asked for user and password.

      2) Enter "admin" for user and "admin" for password. There will be a tab named "wireless" or if there isn't, look for something similar.

      3) There will be a field for WiFi password. You can even change the password by entering a new one.

    • Mihir Patkar
      February 13, 2015 at 7:49 pm

      Perfect reply, thanks Chinmay!

  16. dave
    February 13, 2015 at 12:44 pm

    There are problems with copy|pasting the text of the .bat file.

    netsh wlan show profile name="ssid-name-here" key=clear

    Delete the "echo" from the start of the line.
    Change the smart quotes to straight quotes (both ends!)
    pause is on the second line (two lines total)

    • Mihir Patkar
      February 13, 2015 at 7:49 pm

      Thanks Dave, fixing this now :)