Petri Newsletter Sign-up
Tech Tuesday

Subscribe to Tech Tuesday, the latest insights from Petri.com for IT Pros.

    See All Petri Newsletters

    How to Back Up and Restore Wireless Network Profiles

    Posted on by Russell Smith in Windows Client OS

    Except for wireless profiles that are automatically configured by an organization, it can be useful to back up profiles so that they can be restored, along with passwords, if users switch to a different device. Today I’ll show you how to use the netsh command-line tool to display, back up, and restore wireless network profiles.

    Back Up Wireless Network Profiles

    Let’s start by listing the profiles configured on a device. Open a command prompt window and run the command line shown below.


    You’ll see a list of any profiles configured using Group Policy and those configured by the user. If you want more information about a profile, add its name to the command line.


    Back up and restore wireless network profiles in Windows 10 (Image Credit: Russell Smith)
    Back up and restore wireless network profiles in Windows 10 (Image Credit: Russell Smith)

    Now let’s back up all the profiles on the device and their passwords. Each profile is backed up to a separate .xml file prefixed with ‘WiFi-‘.


    Using the command above, passwords are stored in clear text. If you want to export profiles with encrypted passwords, remove key=clear from the command:


    But if you remove key=clear from the command, you won’t be able to use netsh to restore the profile with the password. Exporting profiles with passwords in clear text can be useful if you want to quickly copy or set up a profile to another device but don’t know the Wi-Fi password.

    You can export a specific profile by adding its name:


    Back up and restore wireless network profiles in Windows 10 (Image Credit: Russell Smith)
    Back up and restore wireless network profiles in Windows 10 (Image Credit: Russell Smith)

    Restore Wireless Network Profiles

    Now that you have exported one or more wireless network profiles, you can use netsh to add those profiles to a system. The command below adds the contoso wireless profile for all users.


    If you want to add a profile just for the current user, change the user parameter to current.


    When you add a profile, you will be able to see it in the list if you run netsh wlan show profiles again. If the network is in range, the device will automatically connect.

     

    BECOME A PETRI MEMBER:

    Don't have a login but want to join the conversation? Sign up for a Petri Account

    Register

    Register for this Petri Webinar!

    Want to Make Your Backup Storage Unlimited & Ready for the Cloud? – Free Thurrott Premium Account with Webinar Registration!

    Tuesday, August 27, 2019 @ 1:00 pm EDT

    A Scale-Out Backup storage infrastructure is a must-have technology for your backups. In this webinar, join expert Rick Vanover for a look on what real-world problems are solved by the Scale-Out Backup Repository.

    Register Now

    Sponsored By