none
Use of WMI classes in SycML for Win10 MDM devices RRS feed

  • Question

  • Hi,

    As per the MSDN link - https://msdn.microsoft.com/en-us/library/windows/hardware/dn904985(v=vs.85).aspx

    It seems some WMI classes/providers are now supported for Win10 MDM enrolled devices and can be sent via SyncML. I am specifically trying out the Win32_SystemEnclosure WMI class

    Following is what I got when i did a <Get> on the parent node

    <Item>
       <Source>
          <LocURI>./cimV2/Win32_SystemEnclosure</LocURI>
       </Source>
       <Meta>
          <Format xmlns="syncml:metinf">node</Format>
       </Meta>
       <Data>Win32_SystemEnclosure.Tag="System Enclosure 0"</Data>
    </Item>

    The MSDN link above states that doing a <Get> on the parent node, will provide a list of all child nodes. I now want to fetch the SerialNumber field from the Win32_SystemEnclosure WMI class [https://msdn.microsoft.com/en-us/library/windows/desktop/aa394474(v=vs.85).aspx]

    I have tried various ways, but to no avail.. Always got 400 or 404 as shown below.. Have also made sure that child node is URL escaped.

    <Status>
       <CmdID>46</CmdID>
       <MsgRef>1</MsgRef>
       <CmdRef>6</CmdRef>
       <Cmd>Get</Cmd>
       <TargetRef>./cimV2/Win32_SystemEnclosure/SerialNumber</TargetRef>
       <Data>404</Data>
    </Status>
    -------------------------------------------------------------------------
    <Status>
       <CmdID>46</CmdID>
       <MsgRef>1</MsgRef>
       <CmdRef>6</CmdRef>
       <Cmd>Get</Cmd>
       <TargetRef>./cimV2/Win32_SystemEnclosure.SerialNumber</TargetRef>
       <Data>400</Data>
    </Status>
    --------------------------------------------------------------------------
    <Status>
       <CmdID>46</CmdID>
       <MsgRef>1</MsgRef>
       <CmdRef>6</CmdRef>
       <Cmd>Get</Cmd>
       <TargetRef>./cimV2/Win32_SystemEnclosure/Win32_SystemEnclosure.Tag%3D%22System%20Enclosure%200%22</TargetRef>
       <Data>404</Data>
    </Status>
    --------------------------------------------------------------------------
    <Status>
      <CmdID>46</CmdID>
      <MsgRef>1</MsgRef>
      <CmdRef>6</CmdRef>
      <Cmd>Get</Cmd>
      <TargetRef>./cimV2/Win32_SystemEnclosure.Tag%3D%22System%20Enclosure%200%22</TargetRef>
      <Data>400</Data>
    </Status>

    Can some one please point me in the right direction regarding use of WMI classes in SyncML ??


    Wednesday, August 10, 2016 7:48 AM

All replies