To reveal the password for a known Wi-Fi network (SSID) in Windows 11 using the command line, follow these steps:
- Open Command Prompt as Administrator:
- Click on the Start menu, type
cmdorCommand Promptin the search bar. - Right-click on Command Prompt from the search results and select Run as administrator.
- Click on the Start menu, type
- List All Saved Wi-Fi Profiles:
- In the Command Prompt window, type the following command and press Enter:sqlCopyEdit
netsh wlan show profiles - This command will display a list of all Wi-Fi profiles that your computer has connected to previously.
- In the Command Prompt window, type the following command and press Enter:sqlCopyEdit
- Display the Password for a Specific Wi-Fi Profile:
- Identify the Wi-Fi profile name (SSID) for which you want to reveal the password from the list generated in the previous step.
- Type the following command, replacing
Your_SSIDwith the name of your Wi-Fi network, and press Enter:pgsqlCopyEditnetsh wlan show profile name="Your_SSID" key=clear - In the output, scroll to the Security settings section.
- Locate the line labeled Key Content; the value next to it is the Wi-Fi password.
Example: If your Wi-Fi network name is HomeNetwork, the command would be:
pgsqlCopyEditnetsh wlan show profile name="HomeNetwork" key=clear
The output will display information about the profile, and under Security settings, you’ll find:
yamlCopyEditSecurity settings:
...
Key Content : [Your Wi-Fi Password]
Note: Ensure you have administrative privileges to execute these commands. This method works for Wi-Fi networks that your computer has previously connected to and saved.