Ok, I returned, no one seemed to notice anyway.
I spent about an hour to figure out how to generate a strongly typed WMI object in Visual Studio. It's the third time I forget how to do this, so I am writing it here so I won't forget.
I quote from the link http://msdn.microsoft.com/en-us/library/2wkebaxa.aspx , "You can alternately generate a strongly-typed class using the Server Explorer Management Extension in Visual Studio .NET."
This means you open the Server Explorer, expand your computer, expand the Management Classes branch and voila!
If you can't find the specific class you want, you can right click on the Management Classes and choose Add Classes...
Ami
Tuesday, September 11, 2012
Subscribe to:
Posts (Atom)