Quantcast
Channel: Windows 7 – Ardamis
Viewing all articles
Browse latest Browse all 24

Building WMI queries with Wbemtest.exe and WMI Code Creator

$
0
0

Sure, Wbemtest.exe is pretty neat, and it gets points for being built-in. http://blogs.technet.com/b/chad/archive/2012/03/08/tip-45-wbemtest-the-underappreciated-tool.aspx

Microsoft's Wbemtest.exe displaying a WMI query

Microsoft’s Wbemtest.exe displaying a WMI query

But when it comes to building WMI queries for use in scripting languages, Microsoft’s WMI Code Creator is even slicker. http://technet.microsoft.com/en-us/magazine/2006.01.utilityspotlight.aspx

The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications using WMI.

http://technet.microsoft.com/en-us/scriptcenter/dd823314.aspx

Microsoft's WMI Code Creator displaying a WMI query and VBScript

Microsoft’s WMI Code Creator displaying a WMI query and VBScript (click for full-size)

Sadly, it’s no longer easy to find the WMI Code Creator utility on microsoft.com. Thankfully, it’s still available on Download.com: http://download.cnet.com/WMI-Code-Creator/3000-2229_4-10731137.html


Viewing all articles
Browse latest Browse all 24

Trending Articles