Skip to content

Instantly share code, notes, and snippets.

@Techlogist
Last active October 3, 2021 12:34
Show Gist options
  • Save Techlogist/99cbeca2754f7de984cce57bd27746c6 to your computer and use it in GitHub Desktop.
Save Techlogist/99cbeca2754f7de984cce57bd27746c6 to your computer and use it in GitHub Desktop.
Show your Wifi password easily
REM License: GNU General Public License v2.0
REM Author: Miguel
REM Website: www.techlogist.net
REM Post: https://techlogist.net/batch/show-your-wifi-password-easily
REM Description: This script helps users find their wifi passwords
REM OS/Language/Region: Windows/EN-US
@echo off
title Show WiFi password
color f0
mode con:cols=70 lines=10
goto start
:start
cls
REM Find the current network SSID
for /f "tokens=3" %%g in ('netsh wlan show interfaces^|find " SSID : "') do set _network_name=%%g
echo.
netsh wlan show profile %_network_name% key=clear|find "SSID name"
echo.
netsh wlan show profile %_network_name% key=clear|find "Key Content"
echo.
echo.
echo Press any key to exit
pause>nul
:exit
cls
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment