Skip to content

Instantly share code, notes, and snippets.

@pseudosavant
Created April 30, 2020 21:59
Show Gist options
  • Save pseudosavant/c7f0bbba32a7a765a5132eba2fb4f51e to your computer and use it in GitHub Desktop.
Save pseudosavant/c7f0bbba32a7a765a5132eba2fb4f51e to your computer and use it in GitHub Desktop.
Batch files for backing up and restoring Windows wifi networks
@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
@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