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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s