locked
DM WiFi Profile Management doesn't work RRS feed

  • Question

  • We are implementing DM WiFi Profile Management commend stated in the Windows 8.1 Enterprise Device Management Protocol document, but the command doesn't work.

    To be more specific, we sent the following SyncML command, but it always returns same error.

    How can we make it work? Any help is apprecaited.

    The command of SyncML we sent is as below.

    <Replace>

      <CmdID>4</CmdID>

      <Item>

        <Target>

          <LocURI>./cimv2/MDM_WirelessProfileXml.Name=%22TEST%22/ProfileXml</LocURI>

        </Target>

        <Meta>

          <Format xmlns="syncml:metinf">xml</Format>

          <Type xmlns="syncml:metinf">text/plain</Type>

        </Meta>

        <Data>&lt;WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">&lt;name>TEST&lt;/name>&lt;SSIDConfig>&lt;SSID>&lt;name>TEST&lt;/name>&lt;/SSID>&lt;/SSIDConfig>&lt;connectionType>ESS&lt;/connectionType>&lt;connectionMode>manual&lt;/connectionMode>&lt;MSM>&lt;security>&lt;authEncryption>&lt;authentication>WPA2PSK&lt;/authentication>&lt;encryption>AES&lt;/encryption>&lt;useOneX>false&lt;/useOneX>&lt;/authEncryption>&lt;sharedKey>&lt;keyType>passPhrase&lt;/keyType>&lt;protected>true&lt;/protected>&lt;keyMaterial>password&lt;/keyMaterial>&lt;/sharedKey>&lt;/security>&lt;/MSM>&lt;/WLANProfile></Data>

      </Item>

    </Replace>

    The error returned is as below.

    <Status>

      <CmdID>5</CmdID>

      <MsgRef>1</MsgRef>

      <CmdRef>4</CmdRef>

      <Cmd>Replace</Cmd>

      <Data>500</Data>

    </Status>

    Also, on the client side (i.e. device side), the following error was generated.

    <Operation_ClientFailure xmlns="http://manifests.microsoft.com/win/2006/windows/WMI">

      <Id>{A8986FB0-000A-0000-C410-D80BB06F98A8}</Id>

      <ClientMachine>V</ClientMachine>

      <User>v\DHsadaike</User>

      <ClientProcessId>4292</ClientProcessId>

      <Component>Unknown</Component>

      <Operation>Start IWbemServices::PutInstance - root\cimv2\mdm : MDM_WirelessProfileXml.Name="TEST"</Operation>

      <ResultCode>0x80041001</ResultCode>

      <PossibleCause>Unknown</PossibleCause>

    </Operation_ClientFailure>

    <Operation_ClientFailure xmlns="http://manifests.microsoft.com/win/2006/windows/WMI">

      <Id>{A8986FB0-000A-0000-C410-D80BB06F98A8}</Id>

      <ClientMachine>V</ClientMachine>

      <User>v\DHsadaike</User>

      <ClientProcessId>4292</ClientProcessId>

      <Component>Unknown</Component>

      <Operation>Start IWbemServices::GetObject - root\cimv2\mdm : \\.\ROOT\cimv2\mdm:MDM_WirelessProfileXml.Name="TEST"</Operation>

      <ResultCode>0x80041002</ResultCode>

      <PossibleCause>Unknown</PossibleCause>

    </Operation_ClientFailure>

    Thank you.
    Thursday, January 29, 2015 8:58 AM

All replies

  • In your data block you appear to have properly replaced '<' character with &lt; but not the '>' characters. 

    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Thursday, January 29, 2015 8:29 PM
  • Hi Eric,

    We corrected the data block as you had pointed out (i.e. replace ">" with &lt; and tried again, but the result was no success... 

    We also tried to bracket the data block with CDATA (without the use of any escaping, "&lt;"), but the result was the same (i.e no success).

    Do you have any other suggestion?

    Wednesday, February 4, 2015 1:18 PM