title: Windows 10 - Connect to Wifi with Password
body: <p>I am trying to connect to secured Wifi via the command prompt. The profile is added as I can see it with the <code>netsh wlan show profile</code> command. The problem is that I can run <code>netsh wlan connect ssid="MYSSID" name="PROFILENAME"</code> and get a response <code>Connection request was completed successfully.</code>, however, when I check the Wifi profiles, the computer asks for a network key. Any search (for me) results in adding profiles with passwords, not connecting to said profiles. Is there a way to bypass manually entering in the Wifi password when connecting?</p>
  
  <p>.xml file (created by using <code>netsh wlan export profile</code>):</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"&gt;
      &lt;name&gt;ssid_name&lt;/name&gt;
  &lt;SSIDConfig&gt;
      &lt;SSID&gt;
          &lt;hex&gt;some_hex_string&lt;/hex&gt;
          &lt;name&gt;ssid_name&lt;/name&gt;
      &lt;/SSID&gt;
      &lt;nonBroadcast&gt;true&lt;/nonBroadcast&gt;
  &lt;/SSIDConfig&gt;
  &lt;connectionType&gt;connection_type&lt;/connectionType&gt;
  &lt;connectionMode&gt;auto&lt;/connectionMode&gt;
  &lt;MSM&gt;
      &lt;security&gt;
          &lt;authEncryption&gt;
              &lt;authentication&gt;auth_type&lt;/authentication&gt;
              &lt;encryption&gt;encryp_type&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;true&lt;/protected&gt;
              &lt;keyMaterial&gt;really_long_hex_string&lt;/keyMaterial&gt;
          &lt;/sharedKey&gt;
      &lt;/security&gt;
  &lt;/MSM&gt;
  </code></pre>
  
  <p></p>