16

Is there a cheatsheet available for WMI? Like what can be queried, where to query it from?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Geo
  • 93,257
  • 117
  • 344
  • 520

3 Answers3

18

There's a ton of information available to query. I think that the best way is just to enumerate everything and have a look.

Try Microsoft's WMI Code Creator application. It helps you build queries in a few languages, so is sort of an interactive cheatsheet.

I also remember finding the "wbemtest" application useful.

I think it's included with Windows, so try Start > Run > wbemtest.

Ilmari Karonen
  • 49,047
  • 9
  • 93
  • 153
xyz
  • 27,223
  • 29
  • 105
  • 125
2

I have found WMI Explorer very helpful in finding classes and methods-- it's a lot more elegant than WEBMtest

Wolf
  • 9,679
  • 7
  • 62
  • 108
1

You can use WMI Browser in the WMI administrative tools. You can search for the classes, query the classes etc.

http://www.microsoft.com/downloads/details.aspx?familyid=6430F853-1120-48DB-8CC5-F2ABDC3ED314&displaylang=en

Rajasankar
  • 928
  • 1
  • 19
  • 41
  • the broken link ("We are sorry, the page you requested cannot be found."), makes this answer little useful. – Wolf Feb 10 '17 at 13:05