Translating into Visual Basic

Visual Basic is not exactly a scripting language, but if you ever find yourself craving graphical front ends for your scripts or if you want to write a more substantial WMI application, it is a very useful tool. Hence, we thought it deserved a mention here. You will probably not be at all surprised to hear that accessing WMI from Visual Basic is very similar to accessing it from VBScript. Converting a VBScript application into a Visual Basic application can involve as little as adding some type information and writing the user interface.

So what type do various WMI objects have? (In other words, when the object variables are declared, what should they be declared as?) It will probably not surprise you to learn that ...

Get Windows Management Instrumentation (WMI) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.