【问题标题】:Pull multiple attributes from WMI从 WMI 中提取多个属性
【发布时间】:2013-07-24 14:55:14
【问题描述】:

是否可以像在 SQL 中查询多个表一样查询多个 WMI 源?

@"SELECT Win32_Process.ExecutablePath, Win32_Process.Handle, Win32_Process.Name, Win32_PerfFormattedData_PerfProc_Process.WorkingSetPrivate, Win32_PerfFormattedData_PerfProc_Process.PercentProcessorTime  FROM Win32_Process, Win32_PerfFormattedData_PerfProc_Process

这不起作用,但希望您能明白这一点。我四处寻找,我什至找不到任何人问这个问题。我猜这是不可能的,但我想在放弃之前先试试这里的专家。

【问题讨论】:

    标签: wmi wmi-query


    【解决方案1】:

    不,你不能。 WQL 语言只是 SQL 的一个子集,不支持同时查询多个类。相反,您可以尝试ASSOCIATORS OF 句子,但仅限于某些情况。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-03-17
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多