Skip to content

Instantly share code, notes, and snippets.

@pseudosavant
Created September 21, 2019 21:15
Show Gist options
  • Save pseudosavant/e92a640aee5a68f7fe3b7832816c09fe to your computer and use it in GitHub Desktop.
Save pseudosavant/e92a640aee5a68f7fe3b7832816c09fe to your computer and use it in GitHub Desktop.
Windows commands for backing up and restoring the stored Wi-Fi networks
REM This command will export all wifi profiles into individual XML files
netsh wlan export profile key=clear
REM This command will iterate over the exported wifi XML files and import them
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