{"id":535,"date":"2017-03-03T13:33:22","date_gmt":"2017-03-03T13:33:22","guid":{"rendered":"https:\/\/ibex.tech\/windows-iot\/?p=535"},"modified":"2017-03-03T13:33:22","modified_gmt":"2017-03-03T13:33:22","slug":"add-profile","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/windows-10-iot-core\/command-line\/wifi\/add-profile","title":{"rendered":"Add Profile"},"content":{"rendered":"<h4>\n\tResources<br \/>\n<\/h4>\n<p>\n\t<a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/f435edbe-1d50-4774-bae2-0dda33eaeb2f#bkmk_wlanAddProfile\">https:\/\/technet.microsoft.com\/en-us\/library\/f435edbe-1d50-4774-bae2-0dda33eaeb2f#bkmk_wlanAddProfile<\/a>\n<\/p>\n<h4>\n\tAdd A New WiFi Profile<br \/>\n<\/h4>\n<p>\n\tCreate the WiFi profile xml file and save it somewhere\n<\/p>\n<h5>\n\tAn example valid WPA2-PSK profile<br \/>\n<\/h5>\n<pre>\n<code>\n&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;WLANProfile xmlns=&quot;http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1&quot;&gt;\n\t&lt;name&gt;MY_WIFI_PROFILE_NAME&lt;\/name&gt;\n\t&lt;SSIDConfig&gt;\n\t\t&lt;SSID&gt;\n\t\t\t&lt;name&gt;MY_WIFI_SSID&lt;\/name&gt;\n\t\t&lt;\/SSID&gt;\n\t\t&lt;nonBroadcast&gt;false&lt;\/nonBroadcast&gt;\n\t&lt;\/SSIDConfig&gt;\n\t&lt;connectionType&gt;ESS&lt;\/connectionType&gt;\n\t&lt;connectionMode&gt;auto&lt;\/connectionMode&gt;\n\t&lt;MSM&gt;\n\t\t&lt;security&gt;\n\t\t\t&lt;authEncryption&gt;\n\t\t\t\t&lt;authentication&gt;WPA2PSK&lt;\/authentication&gt;\n\t\t\t\t&lt;encryption&gt;AES&lt;\/encryption&gt;\n\t\t\t\t&lt;useOneX&gt;false&lt;\/useOneX&gt;\n\t\t\t&lt;\/authEncryption&gt;\n\t\t\t&lt;sharedKey&gt;\n\t\t\t\t&lt;keyType&gt;passPhrase&lt;\/keyType&gt;\n\t\t\t\t&lt;protected&gt;false&lt;\/protected&gt;\n\t\t\t\t&lt;keyMaterial&gt;&lt;MY_WIFI_PASSWORD&lt;\/keyMaterial&gt;\n\t\t\t&lt;\/sharedKey&gt;\n\t\t&lt;\/security&gt;\n\t&lt;\/MSM&gt;\n&lt;\/WLANProfile&gt;\n<\/code><\/pre>\n<h5>\n\tThe command to add it<br \/>\n<\/h5>\n<pre>\n<code>\nnetsh wlan add profile filename=&quot;C:\\MyWifiProfilesFolder\\\\MyWifiProfileToAdd.xml&quot;\n<\/code><\/pre>\n<h4>\n\tWiFi Profile Notes<br \/>\n<\/h4>\n<p>\n\t&lt;sharedKey&gt;&#8230;&lt;protected&gt;\n<\/p>\n<p style=\"margin-left: 40px\">\n\tThis true\/false field indicates if the&nbsp;&lt;keyMaterial&gt; field is encrypted. &nbsp;If you create a WiFi profile from first using &quot;export&nbsp;profile&quot; then the &lt;protected&gt; field will be set to true and the&nbsp;&lt;keyMaterial&gt; field will be encrypted using a key unique to the harware that exported it. &nbsp;To use the profile with other devices you need to change&nbsp;&lt;protected&gt; to false and then enter the password un-encrypted in&nbsp;&lt;keyMaterial&gt;\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<pre>\n<code>\n\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Resources https:\/\/technet.microsoft.com\/en-us\/library\/f435edbe-1d50-4774-bae2-0dda33eaeb2f#bkmk_wlanAddProfile Add A New WiFi Profile Create the WiFi profile xml file and save it somewhere An example valid WPA2-PSK profile &lt;?xml version=&quot;1.0&quot;?&gt; &lt;WLANProfile xmlns=&quot;http:\/\/www.microsoft.com\/networking\/WLAN\/profile\/v1&quot;&gt; &lt;name&gt;MY_WIFI_PROFILE_NAME&lt;\/name&gt; &lt;SSIDConfig&gt; &lt;SSID&gt; &lt;name&gt;MY_WIFI_SSID&lt;\/name&gt; &lt;\/SSID&gt; &lt;nonBroadcast&gt;false&lt;\/nonBroadcast&gt; &lt;\/SSIDConfig&gt; &lt;connectionType&gt;ESS&lt;\/connectionType&gt; &lt;connectionMode&gt;auto&lt;\/connectionMode&gt; &lt;MSM&gt; &lt;security&gt; &lt;authEncryption&gt; &lt;authentication&gt;WPA2PSK&lt;\/authentication&gt; &lt;encryption&gt;AES&lt;\/encryption&gt; &lt;useOneX&gt;false&lt;\/useOneX&gt; &lt;\/authEncryption&gt; &lt;sharedKey&gt; &lt;keyType&gt;passPhrase&lt;\/keyType&gt; &lt;protected&gt;false&lt;\/protected&gt; &lt;keyMaterial&gt;&lt;MY_WIFI_PASSWORD&lt;\/keyMaterial&gt; &lt;\/sharedKey&gt; &lt;\/security&gt; &lt;\/MSM&gt; &lt;\/WLANProfile&gt; The command to add it [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-wifi"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":0,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}