From cc99a16504d29f04fdbeaeca6426c43726e12472 Mon Sep 17 00:00:00 2001 From: Robin Klussmann <32791078+siw36@users.noreply.github.com> Date: Tue, 16 Oct 2018 17:29:03 +0200 Subject: [PATCH] Create show_saved_wifi_password.ps1 --- PowerShell/show_saved_wifi_password.ps1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 PowerShell/show_saved_wifi_password.ps1 diff --git a/PowerShell/show_saved_wifi_password.ps1 b/PowerShell/show_saved_wifi_password.ps1 new file mode 100644 index 000000000..f99e686a1 --- /dev/null +++ b/PowerShell/show_saved_wifi_password.ps1 @@ -0,0 +1,24 @@ +#Show saved wifi passwords +#Supported languages: ENG,GER -> feel free to add your language +Write-Host "To be able to read the keys you need to run this script as administrator!"; +Write-Host "Listing all saved wifi profiles..."; +sleep 1; +netsh wlan show profiles +Write-Host "Please choose a wifi network from the list."; +$name = Read-Host "Type the name"; +Write-Host "You have chosen: $name."; +sleep 1; +Write-Host "The stored wifi password for $name is:"; + +$system_lang = Get-Culture; +$system_lang = $system_lang.name; + +if($system_lang -eq "en-US"){ + netsh wlan show profile name="$name" key=clear | findstr -I -N "Key Content"; +} +elseif($system_lang -eq "de-DE"){ + netsh wlan show profile name="$name" key=clear | findstr -I -N "Schlüsselinhalt"; +} +else{ + Write-Host "Language not supportet."; +}