Checking hardware changes with ManagementBaseObject

Hi,
I’d like to check what hardware gets added or removed when I unplug or plug it in. I tried using the hardwareChanged node with its observable nd it seems to be working, but I don’t know what properties I get as a result and I can’t loop over them to see what they are:


Is there a list somewhere of what the properties could be so I could check them using get_item, or a some way to convert them into a regular ICollection type that works with Gamma?

Referenced System.Management

Way more useful than


Though I’ll leave it here incase anyone else need to deal with non-generic ICollection types.

Its a pretty deep dive to find the hardware associated with the actual change but this should be more than enough.

Thanks @bjoern