Get all saved ssids/wifi passwords - windows batch script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get all saved ssids/wifi passwords - windows batch script

    Create a file and save it as "wifi passwords.bat" :
    Code:
    @echo off
    for /f "tokens=2delims=:" %%a in ('netsh wlan show profile ^|findstr ":"') do (
    set "ssid=%%~a"
    call :getpwd "%%ssid:~1%%"
    )
    pause
    :getpwd
    set "ssid=%*"
    for /f "tokens=2delims=:" %%i in ('netsh wlan show profile name^="%ssid:"=%" key^=clear ^| findstr /C:"Key Content"') do (
    echo ssid: %ssid% pass: %%i
    )
    Run as administrator
Working...
X