Skip to content

Instantly share code, notes, and snippets.

@GeekCornerGH
Created February 17, 2026 06:46
Show Gist options
  • Select an option

  • Save GeekCornerGH/7419442e90f00d5d80d76a07ac0f3c09 to your computer and use it in GitHub Desktop.

Select an option

Save GeekCornerGH/7419442e90f00d5d80d76a07ac0f3c09 to your computer and use it in GitHub Desktop.
Exporting all wifi connections and importing them on a new computer (Windows)

How to export your wifi connections and import them on a new computer easily (Windows)

Requirements

  • Admin permissions
  • Command line access
  • Some way to transfer files

Getting started

  1. Open an elevated command prompt on your old computer
  2. Go to a folder, then launch this command:
    netsh wlan export profile key=clear folder="."
    This will create as many XML files as you have internet profiles saved on your computer
  3. Transfer the folder contents through an USB stick for example
  4. On the new computer, open an elevated command prompt, go to the folder with your exported profiles
  5. Launch this command
    for %f in (*.xml) do netsh wlan add profile filename="%f" user=all
  6. Done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment