Skip to content

Instantly share code, notes, and snippets.

@chadmark
Forked from pseudosavant/wifi-backup.bat
Created May 1, 2025 22:38
Show Gist options
  • Select an option

  • Save chadmark/862eae9a4a47d30bd1702f10e0e9bc07 to your computer and use it in GitHub Desktop.

Select an option

Save chadmark/862eae9a4a47d30bd1702f10e0e9bc07 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"
@chadmark
Copy link
Author

chadmark commented May 1, 2025

Saving for future use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment