Tag Archives: Namespace

WMI and CSharp (C#): Enumerate all the instances (and properties) from a class via WQL

In the two previous posts (Enumerate all classes from a namespace and Enumerate all Namespaces from Root) we gather enough information to enumerate namespaces and classes. In this post we are going to see how to enumerate all the instances from a class via WQL. Below is a screenshot of what I get after executing… Read More »

WMI and CSharp (C#): Enumerate all Namespaces from Root

I like to understand WMI (Windows Management Instrumentation) as a database, main concepts are: Namespaces: Databases Classes: Tables Properties: Columns Instances: Lines Values: Fields With this in mind, we can start enumerating all the namespaces we can access locally. Running this program will display: Next step is to enumerate all classes from a Namespace. This… Read More »