WQL collection queries

Find computers by manufacturer and model

A WQL collection query that returns computers from one manufacturer and one model, for driver, BIOS and firmware deployments.

LanguageWQL
What it does to the systemReads only. It changes nothing.

This query builds a device collection of one hardware model. It reads the manufacturer and model from hardware inventory.

Use it to target drivers, BIOS updates and firmware at the hardware they fit.

WQL
select
  SMS_R_System.ResourceId,
  SMS_R_System.ResourceType,
  SMS_R_System.Name,
  SMS_R_System.SMSUniqueIdentifier,
  SMS_R_System.ResourceDomainORWorkgroup,
  SMS_R_System.Client
from SMS_R_System
inner join SMS_G_System_COMPUTER_SYSTEM
  on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Manufacturer like "Dell%"
  and SMS_G_System_COMPUTER_SYSTEM.Model like "Latitude 5440%"

How to use it

  1. In the console, open Assets and Compliance, then Device Collections.
  2. Open the collection properties. On Membership Rules, select Add Rule, then Query Rule.
  3. Select Edit Query Statement, then Show Query Language. Paste the query.
  4. Change "Dell%" and "Latitude 5440%" to your manufacturer and model.
  5. To get every model from one manufacturer, delete the last line.

Good to know

  • To see the exact text for a computer, open Resource Explorer and look under Hardware, then Computer System.
  • Lenovo puts a type code such as 20XW in the model field. The friendly name is in a different class, so match the first four characters of the code.
manufacturer model SMS_G_System_COMPUTER_SYSTEM drivers BIOS
✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.