<tutorialjinni.com/>

Windows WiFi Password Show CMD

Posted Under: PowerShell, Tutorials, Windows on Jul 5, 2023
Windows WiFi Password Show CMD
The netsh command is widely used for network configuration, as it provides a way to view and modify the network settings of a system. It can also be utilized to retrieve "Wi-Fi" related information from the system. The following command can be used to retrieve and display the names and passwords of all connected Wi-Fi networks:
(netsh wlan show profiles) | Select-String "\:(.+)$" | 
%{$name=$_.Matches.Groups[1].Value.Trim(); $_} | 
% {(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | 
%{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | 
%{[PSCustomObject]@{ SSID=$name;PASSWORD=$pass }} | Format-Table -AutoSize
By executing the above command, you can obtain a comprehensive list of connected Wi-Fi networks along with their corresponding passwords in plain text.





imgae