Last active
March 10, 2023 08:09
-
-
Save Saturate/fe58d57db4db36b0dfb40b9ab07efa65 to your computer and use it in GitHub Desktop.
PowerShell Wifi Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this script as an Admin user and get a list of all WiFi passwords. | |
$listProfiles = netsh wlan show profiles | Select-String -Pattern "All User Profile" | %{ ($_ -split ":")[-1].Trim() }; | |
$listProfiles | foreach { | |
$profileInfo = netsh wlan show profiles name=$_ key="clear"; | |
$SSID = $profileInfo | Select-String -Pattern "SSID Name" | %{ ($_ -split ":")[-1].Trim() }; | |
$Key = $profileInfo | Select-String -Pattern "Key Content" | %{ ($_ -split ":")[-1].Trim() }; | |
[PSCustomObject]@{ | |
WifiProfileName = $SSID; | |
Password = $Key | |
} | |
} |
that did absolutely nothing lol
Care to elaborate a bit? Works here, did you run it in powershell? And are you sure that you allow running scripts?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
that did absolutely nothing lol