The command netsh wlan show profile name="PROFILE_NAME" key=clear
is used in
Windows Command Prompt to display detailed information about a saved Wi-Fi
network profile, including the network security key (password) in clear text.
Here is how it works and how to use it:
-
List all saved Wi-Fi profiles:
Runnetsh wlan show profiles
to see all wireless network profiles stored on your computer. These profiles correspond to Wi-Fi networks you have connected to in the past. -
View details and password of a specific Wi-Fi profile:
Use the commandnetsh wlan show profile name="PROFILE_NAME" key=clear
replacing"PROFILE_NAME"
with the actual Wi-Fi network name (SSID). This will display detailed info about the profile, including the password under the "Security settings" section next to "Key Content". -
Example:
To view the password for a network named "tsunami", run:
netsh wlan show profile name="tsunami" key=clear
-
Requirements:
- You must run the Command Prompt with administrative privileges.
- The profile must exist on the device (i.e., you have connected to that network before).
- You can retrieve passwords for any saved network, not just the one currently connected.
This command is useful for recovering forgotten Wi-Fi passwords stored on your Windows device
. Additional tips:
- You can also automate viewing passwords for all saved profiles using a batch command that loops through all profiles.
- To find the exact interface name if needed, use
netsh interface show interface
. - Other
netsh wlan
commands allow managing wireless connections, such as connecting or disconnecting from networks.
In summary, the netsh wlan show profile name="PROFILE_NAME" key=clear
command reveals the saved Wi-Fi password and other profile details on a
Windows machine with appropriate permissions.