Created
April 30, 2020 21:59
-
-
Save pseudosavant/c7f0bbba32a7a765a5132eba2fb4f51e to your computer and use it in GitHub Desktop.
Batch files for backing up and restoring Windows wifi networks
This file contains hidden or 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 | |
REM This will export all wifi profiles to the current folder. Each profile has its own XML file. | |
netsh wlan export profile key=clear |
This file contains hidden or 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 | |
REM This will loop through all *.xml files in the current folder and import the profiles | |
FORFILES /M *.xml /C "cmd /c netsh wlan add profile @path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment