Last active
October 29, 2020 13:10
-
-
Save timku/7638fecd7e5c7122b028e4a0f527d9ae to your computer and use it in GitHub Desktop.
Windows backup/restore Wifi settings for all access points
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 | |
if not exist data mkdir data | |
netsh wlan export profile key=clear folder=data | |
echo ------- | |
echo DONE | |
echo ------- | |
pause |
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 | |
for /r %%i in (data\*.xml) do ( | |
echo Restoring: %%i | |
netsh wlan add profile filename="%%i" user=all | |
) | |
echo ------- | |
echo DONE | |
echo ------- | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment