Get all saved ssids/wifi passwords - windows batch script

Started on the old forum in July 2020 · view the original in the archive · old links redirect here

#bat #batch #password #wifi #windows

No replies · 314 views · started 6 years ago · 1 min read

something else Fellow · 2,296 posts #1

Create a file and save it as "wifi passwords.bat" :

@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 😊

👍 1
Share

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close