How do I get information about recently connected USB device?

The Win32_DeviceChangeEvent reports just the type of event that occurred and the Time of the event (uint64, representing 100-nanosecond intervals after January 1, 1601, UTC). No that much useful if you also want to know what arrived or was removed. I suggest to use instead the WqlEventQuery class, setting its EventClassName to __InstanceOperationEvent. This system … Read more