Skip to content

Instantly share code, notes, and snippets.

@mansouryaacoubi
Created September 4, 2018 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mansouryaacoubi/81419011fcf8ea91140ccaa9747adde7 to your computer and use it in GitHub Desktop.
Save mansouryaacoubi/81419011fcf8ea91140ccaa9747adde7 to your computer and use it in GitHub Desktop.
Batch to get WiFi Key
@echo off
set /p SSID="Please enter WiFi SSID: "
set keyfile=%SSID%_key.txt
set
echo Retrieving security key for %SSID%...
netsh WLAN show profile name="%SSID%" key=clear >%keyfile%
echo Security key was successfully saved in %keyfile%.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment