在SycML中为Win10 MDM设备使用WMI类 [英] Use of WMI classes in SycML for Win10 MDM devices

查看:66
本文介绍了在SycML中为Win10 MDM设备使用WMI类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据MSDN链接 -   https://msdn.microsoft.com/en-us/library/windows/hardware/dn904985(v = vs.85).aspx

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

现在,Win10 MDM注册设备现在支持一些WMI类/提供程序,可以通过SyncML发送。我特意尝试了
Win32_SystemEnclosure WMI类

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

以下是我做< Get>时的结果在父节点上

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>

上面的MSDN链接指出做< Get>在父节点上,将提供所有子节点的列表。我现在想从 Win32_SystemEnclosure
WMI类中获取
SerialNumber 字段[https://msdn.microsoft.com/en-us/ library / windows / desktop / aa394474(v = vs.85).aspx]

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]

我尝试了各种方法,但无济于事。总是得到400或404,如下图所示..还确保子节点被URL转义。

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>

有人可以指出我在SyncML中使用WMI类的正确方向吗?

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

推荐答案

你好  Dhruvesh:

Hello Dhruvesh:

   ;               感谢您的咨询。我们创建了一个调查此问题的事件。其中一位公开规范的团队成员将尽快与您联系。

                 Thank you for your inquiry. We have created an incident for investigating this issue. One of the Open specifications team member will contact you shortly.

问候。


这篇关于在SycML中为Win10 MDM设备使用WMI类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆