Find all laptops by chassis type
A WQL collection query that returns laptops and other portable computers, based on the chassis type from hardware inventory.
LanguageWQL
What it does to the systemReads only. It changes nothing.
This query builds a device collection of laptops. It reads the chassis type that the hardware reports to Windows.
Use it for anything that only fits portable computers, such as BitLocker, VPN clients or power plans.
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_SYSTEM_ENCLOSURE
on SMS_G_System_SYSTEM_ENCLOSURE.ResourceId = SMS_R_System.ResourceId
where SMS_G_System_SYSTEM_ENCLOSURE.ChassisTypes in ("8", "9", "10", "11", "12", "14", "18", "21", "31", "32")
How to use it
- In the console, open Assets and Compliance, then Device Collections.
- Open the collection properties. On Membership Rules, select Add Rule, then Query Rule.
- Select Edit Query Statement, then Show Query Language. Paste the query.
- Add or remove numbers in the list to fit your hardware. Keep each number in quotes.
Good to know
- The types are: 8 portable, 9 laptop, 10 notebook, 11 hand held, 12 docking station, 14 sub notebook, 18 expansion chassis, 21 peripheral chassis, 31 convertible, 32 detachable.
- Add
"30"to include tablets. - Some vendors report a wrong chassis type. Check a few known laptops and desktops before you deploy to this collection.
laptops
chassis type
SMS_G_System_SYSTEM_ENCLOSURE
portable