Where can I find the WMI documentation?

蓝咒 提交于 2019-12-30 03:32:05

问题


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.


回答1:


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.




回答2:


MSDN WIN32 Classes you can find a list of classes to use in your query here along with example queries




回答3:


Do you know this tool WMI Code Creator, good for learn WMI.
Another similar tool Scriptomatic 2.0.




回答4:


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...




回答5:


Microsoft TechNet Script Center has WMI Scripting Primer and many other hepful WMI resources.




回答6:


There is a Query Language Guide, Query Language Reference, and the Main WMI Documentation page on MSDN.




回答7:


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.




回答8:


I usually use WMI Explorer for my project Services+ , contains full information about WMI queries and methods.



来源:https://stackoverflow.com/questions/483501/where-can-i-find-the-wmi-documentation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!