{"id":4907,"date":"2016-12-22T10:04:30","date_gmt":"2016-12-22T04:34:30","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=4907"},"modified":"2021-05-30T14:14:28","modified_gmt":"2021-05-30T08:44:28","slug":"backup-wifi-profiles-restore-xml-file","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/backup-wifi-profiles-restore-xml-file\/","title":{"rendered":"Backup and Restore Wireless Network Profiles (Wi-Fi)"},"content":{"rendered":"<p>Many of us, especially laptop users, have more than one Wi-Fi network profile set up on our systems. You might use a Wi-Fi network connection when at a coffee shop where you frequent, and connect to another network when at home or office.<\/p>\n<p>This post explains how to backup and restore Wi-Fi network profiles in Windows 7, 8, and Windows 10.<\/p>\n<p><!--more--><\/p>\n<p>Saving Wi-Fi profile passwords helps you connect to networks automatically when in the range, without having to type the SSID and password every time. It&#8217;s even more helpful when connecting to hidden networks.<\/p>\n<p><em>Hidden networks are hotspots with SSID broadcast turned off &#8212; which means you&#8217;ll need to type in the SSID (if you know the name) in addition to its PSK to connect to the network.<\/em><\/p>\n<p>Additionally, you may want to backup all the saved Wi-Fi profiles with their passwords by exporting the configuration to XML files.<\/p>\n<h2>Backup Wi-Fi Profiles by exporting them to XML files<\/h2>\n<ol>\n<li>Create a folder where you want to save your Wi-Fi profiles.<\/li>\n<li>Open the folder.<\/li>\n<li>In the Explorer address bar, type <code>cmd.exe<\/code> and press <kbd>Enter<\/kbd> to open a Command Prompt window.<\/li>\n<li>In the console window, type the following and press <kbd>Enter<\/kbd>:\n<pre>netsh wlan export profile<\/pre>\n<div class=\"qt\">The passphrase or the Pre-Shared Key (PSK) is encrypted in the XML file. If you need to export the profile with the <a href=\"https:\/\/www.winhelponline.com\/blog\/recover-wifi-password-stored-key\/\">passphrase in plain text<\/a>\u00a0you&#8217;ll use the following command:<\/p>\n<pre>netsh wlan export profile key=clear<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4910\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/wifi-export-netsh-2.png\" alt=\"backup and restore Wi-Fi network profiles\" width=\"683\" height=\"618\" \/><\/div>\n<p>You should see the following output &#8212; telling you that the export was successful, for each Wi-Fi profile.<\/p>\n<pre>Interface profile \"XT1068 4219\" is saved in file \".\\Wi-Fi-XT1068 4219.xml\" successfully.\r\n\r\nInterface profile \"Ramesh\" is saved in file \".\\Wi-Fi-Ramesh.xml\" successfully.\r\n\r\nInterface profile \"HUAWEI-E8221-a974\" is saved in file \".\\Wi-Fi-HUAWEI-E8221-a974.xml\" successfully.<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4911\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/wifi-profiles-export-1.gif\" alt=\"backup and restore Wi-Fi network profiles\" width=\"690\" height=\"422\" \/><\/li>\n<\/ol>\n<p>The files are created in the same directory where you&#8217;re currently in. The XML files contain information about the Wi-Fi profiles, such as the SSID, Security and Encryption type, passphrase, auto-connect preference, MAC address randomization choice, etc.<\/p>\n<h3>Netsh Command-line help &#8211; &#8220;Export&#8221; parameter<\/h3>\n<pre><strong>netsh wlan export profile \/?<\/strong>\r\n\r\nUsage: export profile [name=] [folder=] [[interface=]] [key=]\r\n\r\nParameters:\r\n\r\n    Tag             Value\r\n    name          - Name of the profile to export.\r\n    folder        - Name of the folder in which the profile XML files\r\n                    will be saved.\r\n    interface     - Name of the interface which has this profile configured.\r\n    key           - To display the key in plain text, set key=clear.\r\n\r\nRemarks:\r\n\r\n    Saves the selected profiles into XML files in the specified folder.\r\n    For each exported profile, the output file will be named as\r\n    \"Interface Name-Profile Name.xml\".\r\n\r\n    Parameters folder, name and interface are all optional. If profile\r\n    name is given then the specified profile will be saved. Otherwise\r\n    profiles on any interface will be saved.\r\n\r\n    If the folder parameter is provided it must specify an existing folder\r\n    accessible from the local computer. It can either be an absolute path,\r\n    or a relative path to the current working directory. In addition, \".\"\r\n    refers to the current working directory, and \"..\" refers to the parent\r\n    directory of the current working directory. The folder name cannot be\r\n    a UNC (Universal Naming Convention) path. By default profiles will be\r\n    saved in the current working directory.\r\n\r\n    If interface name is given, only the specified profile on the given\r\n    interface will be saved. Otherwise all profiles with the given name\r\n    on the system will be saved.\r\n\r\n    If a key in plain text is required and the caller is local administrator,\r\n    output XML file will include the key in plain text.\r\n    Otherwise, the output XML file will include encrypted key.\r\n\r\nExamples:\r\n\r\n    export profile name=\"profile 1\" folder=c:\\profiles\r\n        interface=\"Wireless Network Connection\"\r\n    export profile name=\"profile 2\" folder=.\r\n    export profile name=\"profile 3\" folder=. key=clear\r\n<\/pre>\n<p>As you can see above, you can export individual Wi-Fi profiles by specifying their name and the interface (if there are multiple Wi-Fi interfaces in the system). Also, you can mention the output folder path.<\/p>\n<p>The Name, Interface, and Folder parameters are optional, though. If those parameters aren&#8217;t specified, by default, all Wi-Fi profiles are exported to the current folder location.<\/p>\n<p><strong>Quick Tip:<\/strong> You can view the list of Wi-Fi interfaces and connections by running the command: <code>\"netsh wlan show profiles\"<\/code>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4691\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/wifi-priority-netsh-1-1.png\" alt=\"wi-fi interfaces and profiles\" width=\"700\" height=\"317\" \/><\/p>\n<h2>Import Wi-Fi Profile from an XML file<\/h2>\n<p>The backed-up XML file(s) can be restored when needed &#8212; especially when you <a href=\"https:\/\/www.winhelponline.com\/blog\/delete-unused-duplicate-wifi-network-profiles\/\">remove a Wi-Fi profile<\/a>\u00a0accidentally by clicking the &#8220;Forget&#8221; button and you don&#8217;t remember the SSID of a hidden network and its password. The XML files also come in handy after clean installing windows or if you want to import them into other systems.<\/p>\n<p>To import the XML file to re-add the profile, use this command:<\/p>\n<pre>netsh wlan add profile \"xmlfilename\"<\/pre>\n<h4>Example<\/h4>\n<pre>netsh wlan add profile \"d:\\wlan profiles\\Wi-Fi-XT1068 4219.xml\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4909\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/wifi-import-netsh-1.png\" alt=\"backup and restore Wi-Fi profiles\" width=\"680\" height=\"93\" \/><\/p>\n<p>The following output is shown:<\/p>\n<pre>Profile XT1068 4219 is added on interface Wi-Fi.<\/pre>\n<p>That&#8217;s it. The profile is now recreated. Repeat the same for each Wi-Fi profile you want to add.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many of us, especially laptop users, have more than one Wi-Fi network profile set up on our systems. You might use a Wi-Fi network connection when at a coffee shop where you frequent, and connect to another network when at home or office. This post explains how to backup and restore Wi-Fi network profiles in &#8230; <a title=\"Backup and Restore Wireless Network Profiles (Wi-Fi)\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/backup-wifi-profiles-restore-xml-file\/\" aria-label=\"Read more about Backup and Restore Wireless Network Profiles (Wi-Fi)\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[106],"class_list":["post-4907","post","type-post","status-publish","format-standard","hentry","category-windows","tag-command-prompt"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6716,"url":"https:\/\/www.winhelponline.com\/blog\/no-wifi-ssid-access-points-found-by-windows-10\/","url_meta":{"origin":4907,"position":0},"title":"[Fix] Wi-Fi Networks (SSID) Not Visible in Windows 10\/11","author":"Ramesh","date":"November 2, 2018","format":false,"excerpt":"Your Windows 10 computer may not show available Wi-Fi Networks (No Wi-Fi Networks Found) sometimes after installing a feature update. Many of the users have reported that they are unable to search and discover new Wi-Fi access points after going through the Fall Creators Update. However, this issue still exists\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"netgear ax mode router","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/netgear-enable-ax.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/netgear-enable-ax.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/11\/netgear-enable-ax.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1819,"url":"https:\/\/www.winhelponline.com\/blog\/delete-unused-duplicate-wifi-network-profiles\/","url_meta":{"origin":4907,"position":1},"title":"How to Delete Unused or Duplicate Wi-Fi Network Profiles in Windows?","author":"Ramesh","date":"March 4, 2016","format":false,"excerpt":"Sometimes, duplicate Wi-Fi network profiles or SSIDs may appear all of a sudden with suffix 2, 3, and so forth, in the list of available Wi-Fi networks, all pointing to the same SSID. This post tells you how to remove the redundant Wi-Fi network connections or connections that you added\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/wifi-dupl-3.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5656,"url":"https:\/\/www.winhelponline.com\/blog\/hide-neighborhood-wifi-ssid-computer\/","url_meta":{"origin":4907,"position":2},"title":"How to Hide Wi-Fi Network (SSID) of your Neighbors on Your Computer","author":"Ramesh","date":"October 27, 2017","format":false,"excerpt":"When you click on the Wi-Fi icon in the Notification area, you'll see the list of Wireless network broadcasts that are within your connection range. With high range routers available in the market, the Wi-Fi broadcast signals are powerful and cover a long range. If you're an apartment dweller, you'll\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"list of ssid wi-fi networks","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/wifi-ssid-hide-unwanted-3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/wifi-ssid-hide-unwanted-3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/wifi-ssid-hide-unwanted-3.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2017\/10\/wifi-ssid-hide-unwanted-3.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2021,"url":"https:\/\/www.winhelponline.com\/blog\/recover-wifi-password-stored-key\/","url_meta":{"origin":4907,"position":3},"title":"How to Recover Stored Wi-Fi Passwords (Security Key) in Windows?","author":"Ramesh","date":"March 12, 2016","format":false,"excerpt":"Using the the built-in options in Windows 8 and Windows 10, you can view or change the password only for the active Wi-Fi connection. This post explains how to view stored passwords for all Wi-Fi profiles in the system.View Wi-Fi Password for the Active Wi-Fi ProfileTo view the Wi-Fi password\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/wifi-pwds-5.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/wifi-pwds-5.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/wifi-pwds-5.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4688,"url":"https:\/\/www.winhelponline.com\/blog\/wifi-connection-priority-change-netsh\/","url_meta":{"origin":4907,"position":4},"title":"Change Wi-Fi Network Connection Priority in Windows 11\/10","author":"Ramesh","date":"November 30, 2016","format":false,"excerpt":"Most of us use more than one Wi-Fi network connection so that if one fails, the 2nd one is used as a fallback. With multiple Wi-Fi network sources, there comes the issue of connection priority. There are situations where you need to use a Wi-Fi connection until it reaches the\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"change wi-fi priority","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/wifi-priority-netsh-1-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/wifi-priority-netsh-1-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/wifi-priority-netsh-1-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/wifi-priority-netsh-1-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":23886,"url":"https:\/\/www.winhelponline.com\/blog\/no-internet-after-windows-10-update\/","url_meta":{"origin":4907,"position":5},"title":"No Internet after Installing Windows Updates [Windows 10]","author":"Ramesh","date":"April 29, 2021","format":false,"excerpt":"After installing a Windows Update -- be it a Cumulative Update, Feature Update, or a driver update, internet access may get broken in some configurations. To name a few, the Quality Updates\u00a0 KB4556799, KB4023057, KB4495620, and the 20H2 Feature Update broke network connectivity on some devices. This article provides some\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"change to google public dns ipv4 properties window","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/04\/apps-install-setup-w10.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=4907"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4907\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=4907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=4907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=4907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}