HomeBlogLearnProductsEventsServicesAbout UsFAQ
Mike Yeager's Blog

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 (myeager@eps-software.com) - Comments (55)

Blog List
VFPConversion Blog
Markus Egger's Blog
Ken Levy's Blog
Claudio Lassala's Blog
Blog Archive
March, 2008 (1)
February, 2008 (1)
October, 2007 (1)
September, 2007 (2)
July, 2007 (1)
May, 2007 (3)
March, 2007 (3)
January, 2007 (2)
December, 2006 (1)
October, 2006 (2)
September, 2006 (2)
August, 2006 (6)
July, 2006 (3)
June, 2006 (2)
May, 2006 (4)