SQL query for SCCM 2007 R2 to find all Dell desktops and laptops
My colleague wrote a SQL query for SCCM 2007 R2 that finds all the Dell desktops and laptops in our environment.
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_R_System.NetbiosName NOT LIKE "SR%" AND SMS_R_System.Active = 1 AND SMS_G_System_COMPUTER_SYSTEM.Manufacturer00 like "%Dell%"
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_R_System.NetbiosName NOT LIKE "SR%" AND SMS_R_System.Active = 1 AND SMS_G_System_COMPUTER_SYSTEM.Manufacturer00 like "%Dell%"
Comments
Post a Comment