ERROR: function WLanSetProfile returns 50I have just begun enabling EAP-TLS support for our Vista users and following the steps in this article, ran into the same error:<br><br><span><span id="_ctl0_MainContent__ctl0_PostForm_ReplyBody" class=txt4><span style="font-style:italic;color:rgb(255, 0, 0)">ERROR: function WLanSetProfile returns 5023.  The group or resource is not in the correct state to perform the requested operation.</span><br><br>Is there a solution to this? Any help would be appreciated.<br><br>Command line executed &gt; <span style="font-style:italic">netsh add profile filename="wlan.xml"</span><br><br>Thanks in advance.<br><br></span></span>© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Jun 2008 00:15:52 Z1079a8a1-c302-471e-afa8-49ac6a3dbb02http://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#1079a8a1-c302-471e-afa8-49ac6a3dbb02http://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#1079a8a1-c302-471e-afa8-49ac6a3dbb02Chris-408http://social.technet.microsoft.com/Profile/en-US/?user=Chris-408ERROR: function WLanSetProfile returns 50I have just begun enabling EAP-TLS support for our Vista users and following the steps in this article, ran into the same error:<br><br><span><span id="_ctl0_MainContent__ctl0_PostForm_ReplyBody" class=txt4><span style="font-style:italic;color:rgb(255, 0, 0)">ERROR: function WLanSetProfile returns 5023.  The group or resource is not in the correct state to perform the requested operation.</span><br><br>Is there a solution to this? Any help would be appreciated.<br><br>Command line executed &gt; <span style="font-style:italic">netsh add profile filename="wlan.xml"</span><br><br>Thanks in advance.<br><br></span></span>Tue, 23 Jan 2007 17:08:36 Z2007-02-16T00:36:57Zhttp://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#ae410efc-81f6-4896-8d7a-0643e856e21ehttp://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#ae410efc-81f6-4896-8d7a-0643e856e21eTaroonhttp://social.technet.microsoft.com/Profile/en-US/?user=TaroonERROR: function WLanSetProfile returns 50<p>can you send the output of </p> <p>cmd&gt; netsh wlan sho all</p> <p>Thanks</p> <p>Taroon</p> <p> </p>Fri, 26 Jan 2007 03:34:12 Z2007-02-16T00:36:57Zhttp://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#d35ec5e9-0ce0-4fdb-be1f-9f478673e056http://social.technet.microsoft.com/Forums/en-US/winserverNAP/thread/1079a8a1-c302-471e-afa8-49ac6a3dbb02#d35ec5e9-0ce0-4fdb-be1f-9f478673e056Toffernhttp://social.technet.microsoft.com/Profile/en-US/?user=ToffernERROR: function WLanSetProfile returns 50<p align=left>Hi.</p> <p align=left>I am having the same problem. Trying to import an exported Wireless-setting. </p> <p align=left>(This thread is getting old now, but I give it a go anyway.)</p> <p align=left> </p> <p align=left>Output of wlan show all is: <br>(Sorry for the long post, I don't see any attachment-system here)</p> <p align=left> </p> <p align=left> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left>Wireless System Information Summary<br>(Time: 31.07.2007 08:59:50)</p> <p align=left><br>======================================================================= <br>============================== SHOW DRIVERS =========================== <br>=======================================================================</p> <p align=left><br>Interface name: ?&#25;,e?&#25;???&#25;?</p> <p align=left>    Driver information for this interface is not available.</p> <p align=left>Interface name: Wireless Network Connection</p> <p align=left>    Driver                    : Intel(R) PRO/Wireless 2915ABG Network Connection<br>    Vendor                    : Intel Corporation<br>    Provider                  : Microsoft<br>    Date                      : 21.06.2006<br>    Version                   : 9.1.0.104<br>    INF file                  : D:\Windows\INF\netw2.inf<br>    Files                     : 1 total<br>                                D:\Windows\system32\DRIVERS\NETw2v32.sys<br>    Type                      : Native Wi-Fi Driver<br>    Radio types supported     : 802.11b 802.11g 802.11a<br>    Authentication and cipher supported in infrastructure mode:<br>                                Open            None<br>                                Open            WEP-40bit<br>                                Open            WEP-104bit<br>                                Open            WEP<br>                                Open            Unknown<br>                                Shared          WEP-40bit<br>                                Shared          WEP-104bit<br>                                Shared          WEP<br>                                Shared          Unknown<br>                                WPA-Enterprise  TKIP<br>                                WPA-Enterprise  CCMP<br>                                WPA-Personal    TKIP<br>                                WPA-Personal    CCMP<br>                                WPA2-Enterprise TKIP<br>                                WPA2-Enterprise CCMP<br>                                WPA2-Personal   TKIP<br>                                WPA2-Personal   CCMP<br>    Authentication and cipher supported in ad-hoc mode:<br>                                Open            None<br>                                Open            WEP<br>                                Shared          WEP</p> <p align=left><br>======================================================================= <br>============================= SHOW INTERFACES ========================= <br>=======================================================================</p> <p align=left><br>There are 2 interfaces on the system: </p> <p align=left>    Name                 : <br>    Description          : Intel(R) PRO/Wireless 2915ABG Network Connection - Virtual Machine Network Services Driver<br>    GUID                 : f3756cb2-4d2f-43b0-a950-6aad6ef40340<br>    Physical Address     : 00:12:f0:5f:25:99<br>    State                : not ready</p> <p align=left>    Name                 : Wireless Network Connection<br>    Description          : Intel(R) PRO/Wireless 2915ABG Network Connection<br>    GUID                 : c25f85a2-376d-4762-a62c-4c3187562355<br>    Physical Address     : 00:12:f0:5f:25:99<br>    State                : disconnected</p> <p align=left><br>======================================================================= <br>============================= SHOW SETTINGS =========================== <br>=======================================================================</p> <p align=left><br>Wireless LAN settings <br>--------------------- <br>    Show blocked networks in visible network list: No.</p> <p align=left>ERROR: function WlanQueryInterface returns 5023.</p> <p align=left>======================================================================= <br>============================== SHOW FILTERS =========================== <br>=======================================================================</p> <p align=left><br>Allow list on the system (group policy) <br>--------------------------------------- <br>    &lt;None&gt;</p> <p align=left>Allow list on the system (user) <br>------------------------------- <br>    &lt;None&gt;</p> <p align=left>Block list on the system (group policy) <br>--------------------------------------- <br>    &lt;None&gt;</p> <p align=left>Block list on the system (user) <br>------------------------------- <br>    &lt;None&gt;</p> <p align=left><br>======================================================================= <br>=========================== SHOW CREATEALLUSER ======================== <br>=======================================================================</p> <p align=left><br>Everyone is allowed to create all user profiles.</p> <p align=left><br>======================================================================= <br>============================= SHOW PROFILES =========================== <br>=======================================================================</p> <p align=left><br>Profiles on interface :</p> <p align=left>Group Policy Profiles (read only)<br>---------------------------------<br>    &lt;None&gt;</p> <p align=left>User Profiles<br>-------------<br>    &lt;None&gt;</p> <p align=left>Profiles on interface Wireless Network Connection:</p> <p align=left>Group Policy Profiles (read only)<br>---------------------------------<br>    &lt;None&gt;</p> <p align=left>User Profiles<br>-------------<br>    All User Profile     : handverkar1<br>    All User Profile     : feide<br>    All User Profile     : HVO<br>    All User Profile     : hvo-tilsett<br>    All User Profile     : tofhq</p> <p align=left><br>======================================================================= <br>========================== SHOW PROFILES NAME=* ======================= <br>=======================================================================</p> <p align=left><br>Profile handverkar1 on interface Wireless Network Connection: <br>======================================================================= </p> <p align=left>Applied: All User Profile    </p> <p align=left>Profile Information <br>------------------- <br>    Version                : 1<br>    Type                   : Wireless LAN<br>    Name                   : handverkar1<br>    Control options        : <br>        Connection mode    : Connect automatically<br>        Network broadcast  : Connect only if this network is broadcasting<br>        AutoSwitch         : Switch to more preferred network if possible</p> <p align=left>Connectivity settings <br>--------------------- <br>    Number of SSIDs        : 1<br>    SSID name              : &quot;handverkar1&quot;<br>    Network type           : Infrastructure<br>    Radio type             : [ Any Radio Type ]<br>    Vendor extension       : Not present</p> <p align=left>Security settings <br>----------------- <br>    Authentication         : Open<br>    Cipher                 : WEP<br>    Security key           : Present<br>    Key Index              : 1</p> <p align=left><br>Profile feide on interface Wireless Network Connection: <br>======================================================================= </p> <p align=left>Applied: All User Profile    </p> <p align=left>Profile Information <br>------------------- <br>    Version                : 1<br>    Type                   : Wireless LAN<br>    Name                   : feide<br>    Control options        : <br>        Connection mode    : Connect automatically<br>        Network broadcast  : Connect only if this network is broadcasting<br>        AutoSwitch         : Switch to more preferred network if possible</p> <p align=left>Connectivity settings <br>--------------------- <br>    Number of SSIDs        : 1<br>    SSID name              : &quot;feide&quot;<br>    Network type           : Infrastructure<br>    Radio type             : [ Any Radio Type ]<br>    Vendor extension       : Not present</p> <p align=left>Security settings <br>----------------- <br>    Authentication         : WPA-Personal<br>    Cipher                 : TKIP<br>    Security key           : Present</p> <p align=left><br>Profile HVO on interface Wireless Network Connection: <br>======================================================================= </p> <p align=left>Applied: All User Profile    </p> <p align=left>Profile Information <br>------------------- <br>    Version                : 1<br>    Type                   : Wireless LAN<br>    Name                   : HVO<br>    Control options        : <br>        Connection mode    : Connect automatically<br>        Network broadcast  : Connect only if this network is broadcasting<br>        AutoSwitch         : Switch to more preferred network if possible</p> <p align=left>Connectivity settings <br>--------------------- <br>    Number of SSIDs        : 1<br>    SSID name              : &quot;HVO&quot;<br>    Network type           : Infrastructure<br>    Radio type             : [ Any Radio Type ]<br>    Vendor extension       : Not present</p> <p align=left>Security settings <br>----------------- <br>    Authentication         : Open<br>    Cipher                 : WEP<br>    Security key           : Present<br>    Key Index              : 1</p> <p align=left><br>Profile hvo-tilsett on interface Wireless Network Connection: <br>======================================================================= </p> <p align=left>Applied: All User Profile    </p> <p align=left>Profile Information <br>------------------- <br>    Version                : 1<br>    Type                   : Wireless LAN<br>    Name                   : hvo-tilsett<br>    Control options        : <br>        Connection mode    : Connect automatically<br>        Network broadcast  : Connect only if this network is broadcasting<br>        AutoSwitch         : Switch to more preferred network if possible</p> <p align=left>Connectivity settings <br>--------------------- <br>    Number of SSIDs        : 1<br>    SSID name              : &quot;hvo-tilsett&quot;<br>    Network type           : Infrastructure<br>    Radio type             : [ Any Radio Type ]<br>    Vendor extension       : Not present</p> <p align=left>Security settings <br>----------------- <br>    Authentication         : Open<br>    Cipher                 : WEP<br>    Security key           : Present<br>    Key Index              : 1</p> <p align=left><br>Profile tofhq on interface Wireless Network Connection: <br>======================================================================= </p> <p align=left>Applied: All User Profile    </p> <p align=left>Profile Information <br>------------------- <br>    Version                : 1<br>    Type                   : Wireless LAN<br>    Name                   : tofhq<br>    Control options        : <br>        Connection mode    : Connect automatically<br>        Network broadcast  : Connect only if this network is broadcasting<br>        AutoSwitch         : Switch to more preferred network if possible</p> <p align=left>Connectivity settings <br>--------------------- <br>    Number of SSIDs        : 1<br>    SSID name              : &quot;tofhq&quot;<br>    Network type           : Infrastructure<br>    Radio type             : [ Any Radio Type ]<br>    Vendor extension       : Not present</p> <p align=left>Security settings <br>----------------- <br>    Authentication         : Open<br>    Cipher                 : WEP<br>    Security key           : Present<br>    Key Index              : 1</p> <p align=left><br>======================================================================= <br>======================= SHOW NETWORKS MODE=BSSID ====================== <br>=======================================================================</p> <p align=left><br>Interface Name :  <br>Visible networks cannot be displayed because auto <br>configuration has been disabled on the interface.<br> <br>Interface Name : Wireless Network Connection <br>There are 3 networks currently visible. </p> <p align=left>SSID 1 : eduroam<br>    Network type            : Infrastructure<br>    Authentication          : WPA-Enterprise<br>    Encryption              : TKIP <br>    BSSID 1                 : 00:1a:30:7e:f5:cf<br>         Signal             : 66%  <br>         Radio Type         : 802.11a<br>         Channel            : 52 <br>         Basic Rates (Mbps) : 6 12 24<br>         Other Rates (Mbps) : 9 18 36 48 54<br>    BSSID 2                 : 00:1a:30:7e:f5:c0<br>         Signal             : 60%  <br>         Radio Type         : 802.11g<br>         Channel            : 1 <br>         Basic Rates (Mbps) : 1 2 5.5 11<br>         Other Rates (Mbps) : 6 9 12 18 24 36 48 54</p> <p align=left>SSID 2 : HVO<br>    Network type            : Infrastructure<br>    Authentication          : WPA-Personal<br>    Encryption              : TKIP <br>    BSSID 1                 : 00:1a:30:7e:f5:c1<br>         Signal             : 60%  <br>         Radio Type         : 802.11g<br>         Channel            : 1 <br>         Basic Rates (Mbps) : 1 2 5.5 11<br>         Other Rates (Mbps) : 6 9 12 18 24 36 48 54<br>    BSSID 2                 : 00:1a:30:7e:f5:ce<br>         Signal             : 70%  <br>         Radio Type         : 802.11a<br>         Channel            : 52 <br>         Basic Rates (Mbps) : 6 12 24<br>         Other Rates (Mbps) : 9 18 36 48 54</p> <p align=left>SSID 3 : hvo-tilsett<br>    Network type            : Infrastructure<br>    Authentication          : WPA-Personal<br>    Encryption              : TKIP <br>    BSSID 1                 : 00:1a:30:7e:f5:c2<br>         Signal             : 68%  <br>         Radio Type         : 802.11g<br>         Channel            : 1 <br>         Basic Rates (Mbps) : 1 2 5.5 11<br>         Other Rates (Mbps) : 6 9 12 18 24 36 48 54<br>    BSSID 2                 : 00:1a:30:7e:f5:cd<br>         Signal             : 70%  <br>         Radio Type         : 802.11a<br>         Channel            : 52 <br>         Basic Rates (Mbps) : 6 12 24<br>         Other Rates (Mbps) : 9 18 36 48 54</p> <p align=left> </p></div></div> <p align=left> </p> <p></p> <p align=left> </p> <p>I tried to look up what &quot;ERROR: function WlanQueryInterface returns 5023.&quot; means, but no luck. </p> <p align=left> </p> <p align=left>The settings I am trying to import, are for the netword &quot;Eduroam&quot; which can be seen as one of the 3 visible networks towards the end of the netsh-output.</p>Tue, 31 Jul 2007 09:15:01 Z2007-07-31T09:15:01Z