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

By | January 6, 2018

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 this program:

wmi Class Instance Screenshoot

Next step will be to add, update or delete instance from a class.

Ahmet

 
0 Kudos
Don't
move!

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

  1. Pingback: A Web Technologist Adventure » Blog Archive » WMI and CSharp (C#): Enumerate all classes from a namespace

Thoughts?