Last active
March 26, 2020 21:16
-
-
Save Shterneregen/d3349dbfcec7dfe8f50803b66474fe26 to your computer and use it in GitHub Desktop.
Export-Import WI-FI credentials via CMD (by admin)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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