Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3891 from siw36/master
Browse files Browse the repository at this point in the history
Merged by aniket965
  • Loading branch information
Aniket965 committed Oct 16, 2018
2 parents 1c40860 + cc99a16 commit 578c828
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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.";
}

0 comments on commit 578c828

Please sign in to comment.