Home » Scripts » Group membership based on disk device name – part II

Group membership based on disk device name – part II

Sometimes you need to include two or more volumes in a group.

  1. Create a new group.
  2. On the “Dynamic Members” tab select “Windows Logical Hardware Component” as class and click Add
  3. Right-click “AND group for Windows Logical Hardware Component…” and select “Switch to Or Group” from the context menu.
  4. Select “Device Name” as property, select Equals as Operator and input the volume name as value, for example C:
  5. Click Insert and select Or Group
  6. In the new OR group, select “Device Name” as property, select Equals as Operator and input the volume name as value, for example E:
  7. Click Ok and close the group wizard

 The formula should look like this:

( Object is Windows Logical Hardware Component AND ( Device Name Equals C: ) OR ( Device Name Equals E: ))