1

I am a C++ programmer working in VS2010. Currently I am using WMI to monitor the processes and devices in the system. While writing WQL query, is it possible to select the TargetInstance from multiple classes? For example, instead of select * from __InstanceOperationEvent within 1 where TargetInstance ISA 'Win32_PnPEntity', how can I use something like select * from __InstanceOperationEvent within .1 where TargetInstance ISA 'Win32_PnpEntity','Win32_DiskDrive'.

I tried using , , OR, etc.But it failed.

Thank you for your help.

Jackzz
  • 1,417
  • 4
  • 24
  • 53

1 Answers1

2

It was not a big deal!!!

select * from __InstanceOperationEvent within 1 where (TargetInstance ISA Win32_PnPEntity') OR (TargetInstance ISA 'Win32_CDROMDRIVE') solved my question.

Jackzz
  • 1,417
  • 4
  • 24
  • 53