Tuesday, December 05, 2006
This is how to write a utility! WMI for developers.I was recently looking for some code to determine the serial number for a computer's motherboard. Searches turned up tons of examples for querying WMI (Windows Management Instrumentation), but the syntax was pretty whacky and I had a hard time finding the right query in the MSDN documentation. Trying the queries out was time consuming. Reading a post on a MS forum, I cam a cross this link: http://www.microsoft.com/downloads/thankyou.aspx?familyId=2CC30A64-EA15-4661-8DA4-55BBC145C30E&displayLang=en for one of the best utilities I've seen in a long time.
This thing is incredibly complete! It not only lists everything that is available to you (thousands of pieces of information!), it allows you to retrieve each value at the click of a button, automatically generates sample code (in the language of your choice) on the fly and then RUNS the sample code interactively if you want. If that isn't enough, there is a link to the MSDN documentation for each call right on the screen. You can even hook into WMI events right there in the utility!
If you're doing any work with WMI - get this utility. If you're writing a utility - see how well it stacks up against this one! Well done!
Posted @ 10:02 AM by Yeager, Mike E (email@example.com) - Comments