I'm building a C# monitor app which uses WMI to grab some performance details of a remote computer. What are some good WMI queries to grab helpful stats such as CPU load, RAM usage, HDD free space, etc.
For example, you can get the CPU load from the property "LoadPercentage" with the query "SELECT * FROM Win32_Processor".
What are some other useful properties & queries?
I think it's a bit complicated recommend a couple of classes in particular because the WMI is extensive and depends on the type of information you wish to obtain.
My recommendation is that you see the following links.
Several classes are used for what you are asking for. I think a good place to start is to separate your (mostly) static classes from your performance classes.
Static
Performance Counters
There are many more, but these will cover what you are asking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With