Google 让我失望了,我在 MSDN 上找不到它。 man wmi
在 Windows shell 中不起作用...
我正在寻找可以查询的对象列表,以及如何构建查询。
对于 WMI,我指的是查询“Win32_Process”等内容的查询语言,
我了解类和示例查询,但我正在寻找所有可能查询对象的完整列表。
我已经使用调试器找到了我正在寻找的内容,但是查看完整的概述以了解 WMI 的可能性仍然很有趣。
Google let me down, I couldn't find it on MSDN. man wmi
doesn't work at the windows shell...
I'm looking for a list of objects that I can query, and how to construct the queries.
With WMI I mean the query language to query stuff like "Win32_Process"
I know about the classes and example queries, but I'm looking for a complete list of all possible query objects.
I already found what I'm looking for using the debugger, but it's still interesting to look at a complete overview to see what's possible with WMI.
发布评论
评论(8)
MSDN WIN32 类
您可以在此处找到要在查询中使用的类列表
以及示例查询
MSDN WIN32 Classes
you can find a list of classes to use in your query here
along with example queries
您知道这个工具WMI代码Creator,非常适合学习WMI。
另一个类似的工具Scriptomatic 2.0。
Do you know this tool WMI Code Creator, good for learn WMI.
Another similar tool Scriptomatic 2.0.
没有可查询的 WMI 类的记录“完整”列表,因为程序可以注册自己的 WMI 提供程序,并且这可能会在版本之间发生变化。
使用 WBEMTEST 并按“枚举类”按钮...
There isn't a documented "complete" list of WMI classes that you can query, because programs can register their own WMI providers, and this can change between versions.
Use WBEMTEST and press the "Enum Classes" button...
您可以使用 WMIViewer 浏览 http://iaas.ao-is.com/Download 它是开源的,甚至可以为您生成 powershell 代码。
You can use WMIViewer to browse WMI classes at http://iaas.ao-is.com/Download it is open source, and even generate powershell code for you.
Microsoft TechNet 脚本中心有 WMI 脚本入门 和许多其他有用的WMI 资源。
Microsoft TechNet Script Center has WMI Scripting Primer and many other hepful WMI resources.
有一个查询语言指南,查询语言参考,以及 MSDN 上的主要 WMI 文档页面。
There is a Query Language Guide, Query Language Reference, and the Main WMI Documentation page on MSDN.
正如前面提到的,WBEMTest 是一个内置于 Windows 中的好工具,可帮助您在 msdn WMI 文档之上进行探索。
但就我个人而言,我发现 WMI Studio 是最完整的工具,有助于理解每个 WMI 类的真正用途及其行为方式。
WMI Studio 有点像 Studio。 它作为 IE 的 ActiveX 插件运行。
它可能无法与 IE11 兼容,因此您可能必须关闭 IE11 中的增强保护模式才能使其正常工作。
WMI Studio。
As Mentioned Previously WBEMTest is a good tool that is built into windows that helps you explore on top of msdn WMI Documentation.
Personally though I found WMI Studio to be the most complete tool helping understand What Each WMI class really does and how it behaves.
WMI Studio is a bit Studio. It runs as an ActiveX Addon For IE.
It might not be compilable with IE11 so you might have to turn off Enhanced Protection Mode in IE11 to get this working.
WMI Studio.
我通常在我的项目 WMI Explorer rel="nofollow">Services+ ,包含有关 WMI 查询和方法的完整信息。
I usually use WMI Explorer for my project Services+ , contains full information about WMI queries and methods.