Device Collection - All Laptops

 Modified from https://www.prajwaldesai.com/sccm-create-collections-for-laptops/:


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','14','30','31','32')

Comments

Popular posts from this blog

Powershell Install-Module Error - Unable to Download from URI ... 0x409

Configuring App-only Authentication for Exchange Online for Powershell Scripts