For testing purposes we want to create a Dynamic device group in my case only a specific model type. in a command prompt type the following line wmic computersystem get model . for all possible rules click here

result:

Log on to the Intune portal and go to Groups and click New Group

Enter and Set:

  • Set to Security
  • Enter group name
  • Enter description
  • Set Membership Type to Dynamic Device

Click on Add dynamic query and click on Edit

Add the following rule syntax :

Click OK, Save and Create. The Dynamic device group is now created and you will be able to check whether the devices are members of this group.