none
ERROR: function WLanSetProfile returns 50

    Question

  • I have just begun enabling EAP-TLS support for our Vista users and following the steps in this article, ran into the same error:

    ERROR: function WLanSetProfile returns 5023.  The group or resource is not in the correct state to perform the requested operation.

    Is there a solution to this? Any help would be appreciated.

    Command line executed > netsh add profile filename="wlan.xml"

    Thanks in advance.

    Tuesday, January 23, 2007 5:08 PM

Answers

All replies

  • can you send the output of

    cmd> netsh wlan sho all

    Thanks

    Taroon

     

    Friday, January 26, 2007 3:34 AM
  • Hi.

    I am having the same problem. Trying to import an exported Wireless-setting.

    (This thread is getting old now, but I give it a go anyway.)

     

    Output of wlan show all is:
    (Sorry for the long post, I don't see any attachment-system here)

     

    Code Snippet

    Wireless System Information Summary
    (Time: 31.07.2007 08:59:50)


    =======================================================================
    ============================== SHOW DRIVERS ===========================
    =======================================================================


    Interface name: ?,e?????

        Driver information for this interface is not available.

    Interface name: Wireless Network Connection

        Driver                    : Intel(R) PRO/Wireless 2915ABG Network Connection
        Vendor                    : Intel Corporation
        Provider                  : Microsoft
        Date                      : 21.06.2006
        Version                   : 9.1.0.104
        INF file                  : D:\Windows\INF\netw2.inf
        Files                     : 1 total
                                    D:\Windows\system32\DRIVERS\NETw2v32.sys
        Type                      : Native Wi-Fi Driver
        Radio types supported     : 802.11b 802.11g 802.11a
        Authentication and cipher supported in infrastructure mode:
                                    Open            None
                                    Open            WEP-40bit
                                    Open            WEP-104bit
                                    Open            WEP
                                    Open            Unknown
                                    Shared          WEP-40bit
                                    Shared          WEP-104bit
                                    Shared          WEP
                                    Shared          Unknown
                                    WPA-Enterprise  TKIP
                                    WPA-Enterprise  CCMP
                                    WPA-Personal    TKIP
                                    WPA-Personal    CCMP
                                    WPA2-Enterprise TKIP
                                    WPA2-Enterprise CCMP
                                    WPA2-Personal   TKIP
                                    WPA2-Personal   CCMP
        Authentication and cipher supported in ad-hoc mode:
                                    Open            None
                                    Open            WEP
                                    Shared          WEP


    =======================================================================
    ============================= SHOW INTERFACES =========================
    =======================================================================


    There are 2 interfaces on the system:

        Name                 :
        Description          : Intel(R) PRO/Wireless 2915ABG Network Connection - Virtual Machine Network Services Driver
        GUID                 : f3756cb2-4d2f-43b0-a950-6aad6ef40340
        Physical Address     : 00:12:f0:5f:25:99
        State                : not ready

        Name                 : Wireless Network Connection
        Description          : Intel(R) PRO/Wireless 2915ABG Network Connection
        GUID                 : c25f85a2-376d-4762-a62c-4c3187562355
        Physical Address     : 00:12:f0:5f:25:99
        State                : disconnected


    =======================================================================
    ============================= SHOW SETTINGS ===========================
    =======================================================================


    Wireless LAN settings
    ---------------------
        Show blocked networks in visible network list: No.

    ERROR: function WlanQueryInterface returns 5023.

    =======================================================================
    ============================== SHOW FILTERS ===========================
    =======================================================================


    Allow list on the system (group policy)
    ---------------------------------------
        <None>

    Allow list on the system (user)
    -------------------------------
        <None>

    Block list on the system (group policy)
    ---------------------------------------
        <None>

    Block list on the system (user)
    -------------------------------
        <None>


    =======================================================================
    =========================== SHOW CREATEALLUSER ========================
    =======================================================================


    Everyone is allowed to create all user profiles.


    =======================================================================
    ============================= SHOW PROFILES ===========================
    =======================================================================


    Profiles on interface :

    Group Policy Profiles (read only)
    ---------------------------------
        <None>

    User Profiles
    -------------
        <None>

    Profiles on interface Wireless Network Connection:

    Group Policy Profiles (read only)
    ---------------------------------
        <None>

    User Profiles
    -------------
        All User Profile     : handverkar1
        All User Profile     : feide
        All User Profile     : HVO
        All User Profile     : hvo-tilsett
        All User Profile     : tofhq


    =======================================================================
    ========================== SHOW PROFILES NAME=* =======================
    =======================================================================


    Profile handverkar1 on interface Wireless Network Connection:
    =======================================================================

    Applied: All User Profile   

    Profile Information
    -------------------
        Version                : 1
        Type                   : Wireless LAN
        Name                   : handverkar1
        Control options        :
            Connection mode    : Connect automatically
            Network broadcast  : Connect only if this network is broadcasting
            AutoSwitch         : Switch to more preferred network if possible

    Connectivity settings
    ---------------------
        Number of SSIDs        : 1
        SSID name              : "handverkar1"
        Network type           : Infrastructure
        Radio type             : [ Any Radio Type ]
        Vendor extension       : Not present

    Security settings
    -----------------
        Authentication         : Open
        Cipher                 : WEP
        Security key           : Present
        Key Index              : 1


    Profile feide on interface Wireless Network Connection:
    =======================================================================

    Applied: All User Profile   

    Profile Information
    -------------------
        Version                : 1
        Type                   : Wireless LAN
        Name                   : feide
        Control options        :
            Connection mode    : Connect automatically
            Network broadcast  : Connect only if this network is broadcasting
            AutoSwitch         : Switch to more preferred network if possible

    Connectivity settings
    ---------------------
        Number of SSIDs        : 1
        SSID name              : "feide"
        Network type           : Infrastructure
        Radio type             : [ Any Radio Type ]
        Vendor extension       : Not present

    Security settings
    -----------------
        Authentication         : WPA-Personal
        Cipher                 : TKIP
        Security key           : Present


    Profile HVO on interface Wireless Network Connection:
    =======================================================================

    Applied: All User Profile   

    Profile Information
    -------------------
        Version                : 1
        Type                   : Wireless LAN
        Name                   : HVO
        Control options        :
            Connection mode    : Connect automatically
            Network broadcast  : Connect only if this network is broadcasting
            AutoSwitch         : Switch to more preferred network if possible

    Connectivity settings
    ---------------------
        Number of SSIDs        : 1
        SSID name              : "HVO"
        Network type           : Infrastructure
        Radio type             : [ Any Radio Type ]
        Vendor extension       : Not present

    Security settings
    -----------------
        Authentication         : Open
        Cipher                 : WEP
        Security key           : Present
        Key Index              : 1


    Profile hvo-tilsett on interface Wireless Network Connection:
    =======================================================================

    Applied: All User Profile   

    Profile Information
    -------------------
        Version                : 1
        Type                   : Wireless LAN
        Name                   : hvo-tilsett
        Control options        :
            Connection mode    : Connect automatically
            Network broadcast  : Connect only if this network is broadcasting
            AutoSwitch         : Switch to more preferred network if possible

    Connectivity settings
    ---------------------
        Number of SSIDs        : 1
        SSID name              : "hvo-tilsett"
        Network type           : Infrastructure
        Radio type             : [ Any Radio Type ]
        Vendor extension       : Not present

    Security settings
    -----------------
        Authentication         : Open
        Cipher                 : WEP
        Security key           : Present
        Key Index              : 1


    Profile tofhq on interface Wireless Network Connection:
    =======================================================================

    Applied: All User Profile   

    Profile Information
    -------------------
        Version                : 1
        Type                   : Wireless LAN
        Name                   : tofhq
        Control options        :
            Connection mode    : Connect automatically
            Network broadcast  : Connect only if this network is broadcasting
            AutoSwitch         : Switch to more preferred network if possible

    Connectivity settings
    ---------------------
        Number of SSIDs        : 1
        SSID name              : "tofhq"
        Network type           : Infrastructure
        Radio type             : [ Any Radio Type ]
        Vendor extension       : Not present

    Security settings
    -----------------
        Authentication         : Open
        Cipher                 : WEP
        Security key           : Present
        Key Index              : 1


    =======================================================================
    ======================= SHOW NETWORKS MODE=BSSID ======================
    =======================================================================


    Interface Name : 
    Visible networks cannot be displayed because auto
    configuration has been disabled on the interface.
     
    Interface Name : Wireless Network Connection
    There are 3 networks currently visible.

    SSID 1 : eduroam
        Network type            : Infrastructure
        Authentication          : WPA-Enterprise
        Encryption              : TKIP
        BSSID 1                 : 00:1a:30:7e:f5:cf
             Signal             : 66% 
             Radio Type         : 802.11a
             Channel            : 52
             Basic Rates (Mbps) : 6 12 24
             Other Rates (Mbps) : 9 18 36 48 54
        BSSID 2                 : 00:1a:30:7e:f5:c0
             Signal             : 60% 
             Radio Type         : 802.11g
             Channel            : 1
             Basic Rates (Mbps) : 1 2 5.5 11
             Other Rates (Mbps) : 6 9 12 18 24 36 48 54

    SSID 2 : HVO
        Network type            : Infrastructure
        Authentication          : WPA-Personal
        Encryption              : TKIP
        BSSID 1                 : 00:1a:30:7e:f5:c1
             Signal             : 60% 
             Radio Type         : 802.11g
             Channel            : 1
             Basic Rates (Mbps) : 1 2 5.5 11
             Other Rates (Mbps) : 6 9 12 18 24 36 48 54
        BSSID 2                 : 00:1a:30:7e:f5:ce
             Signal             : 70% 
             Radio Type         : 802.11a
             Channel            : 52
             Basic Rates (Mbps) : 6 12 24
             Other Rates (Mbps) : 9 18 36 48 54

    SSID 3 : hvo-tilsett
        Network type            : Infrastructure
        Authentication          : WPA-Personal
        Encryption              : TKIP
        BSSID 1                 : 00:1a:30:7e:f5:c2
             Signal             : 68% 
             Radio Type         : 802.11g
             Channel            : 1
             Basic Rates (Mbps) : 1 2 5.5 11
             Other Rates (Mbps) : 6 9 12 18 24 36 48 54
        BSSID 2                 : 00:1a:30:7e:f5:cd
             Signal             : 70% 
             Radio Type         : 802.11a
             Channel            : 52
             Basic Rates (Mbps) : 6 12 24
             Other Rates (Mbps) : 9 18 36 48 54

     

     

     

    I tried to look up what "ERROR: function WlanQueryInterface returns 5023." means, but no luck.

     

    The settings I am trying to import, are for the netword "Eduroam" which can be seen as one of the 3 visible networks towards the end of the netsh-output.

    Tuesday, July 31, 2007 9:15 AM