The Categorizer

the categorizer logo

How To Find WiFi Password in Windows (7 Ways)


Entering the network password and connecting the computer to the network is a one-time effort, thereafter, the computer automatically connects to the saved network when it’s in range. This is one of the reasons why we tend to forget the network password.

It appears that you forgot your WiFi password and no longer connect to your network, or that you would like to recover the WiFi password to share it with another device. By the end of this article, you’ll be able to recover/find wifi password in Windows:


Step 1: Open the Command Prompt or PowerShell (any) from the Start menu as an administrator.

command prompt icon in windows 11
Command Prompt (CMD) Icon

Step 2: To list all WLAN profiles on your computer, type the following command: “netsh wlan show profiles” (without quotation marks).

command to list all network profiles in command prompt in windows
List All Wi-Fi Profiles in CMD

Step 3: To check the password for a specific profile, type the following command:
netsh wlan show profile “Profile-Name” key=clear.

command to show wifi password in windows command prompt
Command To Show Wi-Fi Password in Windows using CMD
password visible for desired network in windows command prompt
Password Visible For Desired Network in Key Content Section

Step 1: Right-click the desktop and create a new “Text Document“.

right click mouse button and create a new text document file
Create New Document

Step 2: Copy and Paste the following Batch Script into the text document:

:: Show Wi-Fi Password in Windows 11 using Batch Script – TheCategorizer

@echo off

echo Available User Profiles
netsh wlan show profiles

echo Select an Available User Profile
set /p user_profile= “”

netsh wlan show profile “%user_profile%” key=clear
pause

batch script to show wifi password in windows in text document
Batch Script To Show WiFi Password in Windows

Step 3: Click the “File” button on the top bar and click the “Save as” button.

click the save as button to save the batch script text document
File > “Save as” Button

Step 4: Change the file extension from “File-Name.txt” to “File-Name.bat“.

save the file format of batch script to show wifi password in windows from text document to batch script format
“.txt” Format to “.bat” Format

Step 5: Run the batch script as an administrator and the Command Prompt window will appear.

Step 6: Enter the profile name of the Wi-Fi (SSID) for which you want to show the password. You’ll find the network’s password on the right of the “Key Content” key under the “Security settings” section.

running batch script and showing wifi password using batch script in windows
Running Batch Script and Showing WiFi password in windows

Suggested Article: PowerShell and Batch Scripts To Show Wifi Password in Windows (With Explanation) – Scripts Library.


Step 1: Download the Batch Script to Show Wi-Fi Passwords in Windows.

Step 2: Right-click the ZIP File, and extract it by clicking the “Extract All” button.

right click the downloaded batch script to show wifi password in windows and click the extract all option
“Extract All” Button

Step 3: Run the batch script as an administrator, and enter the profile name of the Wi-Fi for which you want to show the password.

run the downloaded batch script as administrator to show wifi password in windows
“Run As Administrator”

Step 4: Enter the profile name of the Wi-Fi (SSID) for which you want to show the password. You’ll find the network’s password on the right of the “Key Content” key under the “Security settings” section.

running batch script and showing wifi password using batch script in windows
Running Batch Script and Showing WiFi password in windows

Step 1: Right-click the desktop and create a new “Text Document“.

right click mouse button and create a new text document file
Create New Document

Step 2: Copy and Paste the following PowerShell Script into the text document.

# Show Wi-Fi Password in Windows using PowerShell Script – TheCategorizer

“Available User Profiles”
netsh wlan show profiles

“Input an Available User Profile”
$user_input = Read-Host

netsh wlan show profile “$user_input” key=clear
pause

powershell script to show wifi password in windows in text document
PowerShell Script to Show WiFi Password in Windows

Step 3: Click the “File” button on the top bar and click the “Save as” button.

click the save as button to save the powershell script in text document used to show wifi password in windows
File > “Save As” Button

Step 4: Change the file extension from “File-Name.txt” to “File-Name.ps1” and save it in the desired location.

save the file format from text document to powershell ps1 format
“.txt” Format to “.ps1” format

Step 5: Right-click the newly created “ps1” format file and click the “Run with PowerShell” option.

right clilck the ps1 format file and click the run with powershell button
Right-click and Run with PowerShell Button

Step 6: Enter the profile name of the Wi-Fi (SSID) for which you want to show the password. You’ll find the network’s password on the right of the “Key Content” key under the “Security settings” section.

running powershell script to show wifi password in windows
Running PowerShell Script To Show WiFi Password
showing wifi password in windows using powershell script
Showing WiFi Password in Windows

Step 1: Download the PowerShell Script to Show Wi-Fi Passwords in Windows.

Step 2: Right-click the ZIP File, and extract it by clicking the “Extract All” button.

right click the zip file and click the extract all button to extract the powershell script to show wifi password in windows
Extract the ZIP File containing PowerShell Script

Step 3: Enter the profile name of the Wi-Fi (SSID) for which you want to show the password. You’ll find the network’s password on the right of the “Key Content” key under the “Security settings” section.

running powershell script to show wifi password in windows
Running PowerShell Script To Show WiFi Password

NOTE: This method will only show the WiFi password for the network with which you’re connected.

Step 1: In the Start menu, search for Control Panel and open it.

Step 2: Click the “Network and Internet” option.

select the network and internet option
Network and Internet

Step 3: Click the “Network and Sharing Center” option.

click the network and sharing center option
Network and Sharing Center

Step 4: Select the Wi-Fi / Ethernet Connection.

select the network connection in the control panel- WiFi or ethernet
Wi-Fi or Ethernet

Step 5: Click the “Wireless Properties” button.

click the wireless properties button in network status properties panel
“Wireless Properties” Button

Step 6: Select the “Security” tab from the top and check the “Show Characters” box.

click the show characters button to show network password in windows
“Show Characters” Button

Step 1: Download Wireless Key View Software from the official website.

Step 2: Extract the software using WinRAR or the 7-Zip utility.

extract the wireless key view zip file
Extract the “Wireless Key View” Zip File
open the wireless key view application after extracting zip file
Open the Wireless Key View Application

Step 3: Run the program and you’ll find the passwords for all the networks listed in tabular format.

password listed for all available networks in windows
Password Listed For All Available Networks using Third-Party App

Where are network passwords stored in Windows?

The WiFi password is stored in the following path in Windows:
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces. The folder includes the XML documents in which the network information including its SSID (name), authentication type, key material (encrypted hexadecimal password key), etc are stored.


Next Steps

We’ve covered how to find WiFi passwords in Windows 11. You can use any one of the methods listed above. Using these methods, you can show password for any saved network.

Further, configure your computer’s settings by referring to the related articles below.


how to change dns server in windows 11

Change DNS Server in Windows [For Faster Internet]

Boost the internet speed by manually settings up the fastest DNS for your location.

how to find MAC Address in Windows 11

How To Find MAC Address in Windows

Learn how to show MAC Address (unique identifier key assigned to network adapters) in Windows.

configure DHCP on windows 11

Configure Dynamic Host Configuration Protocol (DHCP) in Windows

Dynamically allot IP Addresses to the networks, instead of committing mistakes by manually configuring them.

how to update drivers in windows

How To Update Drivers in Windows

Learn how to update Windows drivers to improve the computer’s performance.

how to reset network adapters in windows 11

How To Reset Network Adapters in Windows

Fix the network connectivity issues by resetting the network adapters properly.

Take a Minute to Share This Article.