From: "Charlie B." Date: 2012-08-02T23:45:46+09:00 Subject: WMI query with multiple and/or conditions? I am using Ruby to write a format disk script. I am using WMI to differentiate local logical disks from virtual floppies, CD-roms, and attached SAN disks. The differentiation is in the win32_DiskDrive class, under the "caption" section. Since this script will be run on VMs, HP, or Dell, I need it to look for multiple conditions, and I'm not sure how to do it. Here is a section of code that works when only looking for VM disks: require 'ruby-wmi' logical_disks = WMI::Win32_DiskDrive.find(:all, :conditions => { :Caption => 'VMware Virtual disk SCSI Disk Device' } ) Can I add multiple conditions to it, such as two other potential :Captions? Some way to do an 'or' in there so it will capture data from either VMware Virtual Disks, or HP Logical Disks, or Dell Perc, etc? -- Posted via http://www.ruby-forum.com/.