Dump Wifi Passwords using PowerShell on Windows 11 or Windows 10

Do you have wifi passwords stored on a Windows 10 or Windows 11 laptop and need to retrieve them? Look no further. They can easily be dumped using Windows PowerShell.

First, launch Windows PowerShell as an administrator. Search for Window PowerShell, right click and launch as the Administrator.

Then, add the following commands:

(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]@{ PROFILE=$name;PASS=$pass }} | Format-Table -AutoSize

This will dump something like this:

Leave a comment