Run from admin command prompt:
Copy to Clipboard
netsh wlan show wlanreport After it is done, view the report: C:\ProgramData\Microsoft\Windows\WlanReport\wlan-report-latest.html Show all available wifi networks Copy to Clipboard
netsh wlan sh net mode=bssid Show old saved SSID info: Copy to Clipboard
netsh wlan show profile Show a saved Wifi password (change MyNetwork to the name listed above: Copy to Clipboard
netsh wlan show profile "MyNetwork" key=clear Show Wifi connection log errors (remove '| Where-Object LevelDisplayName -EQ Error' to show all items, not just errors) Copy to Clipboard
Get-WinEvent -Logname Microsoft-Windows-WLAN-AutoConfig/Operational | Where-Object LevelDisplayName -EQ Error | fl *
Find and show ALL saved Wifi passwords Copy to Clipboard
$wifi = $(netsh.exe wlan show profiles)
if ($wifi -match "There is no wireless interface on the system."){
Write-Output $wifi
exit
}
$ListOfSSID = ($wifi | Select-string -pattern "\w*All User Profile.*: (.*)" -allmatches).Matches | ForEach-Object {$_.Groups[1].Value}
$NumberOfWifi = $ListOfSSID.count
Write-Warning "[$(Get-Date)] I've found $NumberOfWifi Wi-Fi Connection settings stored in your system $($env:computername) : "
foreach ($SSID in $ListOfSSID){
try {
$passphrase = ($(netsh.exe wlan show profiles name=`"$SSID`" key=clear) |
Select-String -pattern ".*Key Content.*:(.*)" -allmatches).Matches |
ForEach-Object {$_.Groups[1].Value}
}
catch {
$passphrase = "N/A"
}
Write-Output "$SSID : $passphrase"
}
https://www.scriptinglibrary.com/languages/powershell/how-to-show-all-known-wi-fi-network-ssids-and-passphrases-with-powershell/ https://www.pcmag.com/how-to/view-saved-wi-fi-passwords Wireless Diagnostic View - A great utility to see more info about what Wireless connection is doing https://www.nirsoft.net/utils/wifi_diagnostics_view.html A Powershell module with lots of Wifi features is available here: https://www.powershellgallery.com/packages/WifiTools/1.8.4/Content/WifiTools.ps1 https://www.powershellgallery.com/packages/WifiTools/ |