Skip to content

Instantly share code, notes, and snippets.

@Shterneregen
Last active March 26, 2020 21:16
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 Shterneregen/d3349dbfcec7dfe8f50803b66474fe26 to your computer and use it in GitHub Desktop.
Save Shterneregen/d3349dbfcec7dfe8f50803b66474fe26 to your computer and use it in GitHub Desktop.
Export-Import WI-FI credentials via CMD (by admin)
@echo off
set folder=%CD%
set exportPath=%folder%\wifi
if not exist "%exportPath%" mkdir "%exportPath%"
netsh wlan export profile key=clear folder=%exportPath%
cls
exit
for /R "wifi\" %%f in (*.xml) do (netsh wlan add profile filename="wifi\%%~nf.xml")
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment