Show saved WiFi profiles with passwords

The script lets can show you all WiFi profiles which are stored on a local computer.It can also show you only the password of a selected Wifi profileor shows all Wifi profiles whith their saved passwords.The script is tested on a computer running Windows 10, but it should work on

 
 
 
 
 
5 Star
(1)
1,952 times
Add to favorites
Networking
2/8/2016
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Doesn't work for other language
    1 Posts | Last post July 27, 2017
    • I've found, that the Script doesn't work with another language than english, due to the hardcoded "Select-String" pattern. 
      
      If you want to use it on a system with a different language you have to change the code from : 
      $Profiles | Foreach{$ProfileName = $_ ; (netsh wlan show profile name="$_" key=clear)} | `
                              Select-String "Key Content\W+\:(.+)$" | `
                                  Foreach{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | `
                                      Foreach{[PSCustomObject]@{ PROFILE_NAME=$ProfileName;PASSWORD=$pass }} | `
                                          Format-Table -AutoSize 
      
      to: 
      $Profiles | Foreach{$ProfileName = $_ ; (netsh wlan show profile name="$_" key=clear)} | `
                              Select-String "*****<Key Content in your lang.>*****\W+\:(.+)$" | `
                                  Foreach{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | `
                                      Foreach{[PSCustomObject]@{ PROFILE_NAME=$ProfileName;PASSWORD=$pass }} | `
                                          Format-Table -AutoSize 
      
      If I'll find the time, I'll try to turn it into a universal script.
      
      
      Greetings ;) 
      
      P.S.: In german you have to use "sselinhalt" to get the right result.