SQL Report for only Laptop Computers

    If your boss ask to get list of laptops which are managed by SMS or SCCM.what do you do and how do you get that. Right click on computer and go to resource explorer to identify the computer is Laptop or Desktop ? You can identify if the computer is Laptop or Desktop based on its chassis Types. Below are listed the Chassis types available to create SCCM collection or reports. For Laptops Chassis Types : 8 , 9, 10, 11, 12, 14, 18, 21 For Desktop Chassis Type : 3, 4, 5, 6, 7, 15, 16 For server Chassis  Type: 23                 SELECT     dbo.v_R_System.Name0 AS [Computer Name], dbo.v_R_System.User_Name0 AS [User Name], dbo.v_R_System.User_Domain0 AS [Domain Name],
                      dbo.v_GS_SYSTEM_ENCLOSURE.Manufacturer0 AS Manufacturer, dbo.v_GS_COMPUTER_SYSTEM.Model0 AS Model,
                      dbo.v_GS_SYSTEM_ENCLOSURE.SerialNumber0 AS [Serial Number], dbo.v_GS_SYSTEM.SystemRole0 AS [System OS Type],
                      dbo.v_GS_SYSTEM.SystemType0 AS [System Type]
FROM         dbo.v_GS_SYSTEM_ENCLOSURE INNER JOIN
                      dbo.v_R_System ON dbo.v_GS_SYSTEM_ENCLOSURE.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                      dbo.v_GS_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_SYSTEM.ResourceID INNER JOIN
                      dbo.v_GS_COMPUTER_SYSTEM ON dbo.v_GS_SYSTEM.ResourceID = dbo.v_GS_COMPUTER_SYSTEM.ResourceID
WHERE     (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ‘8’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ‘9’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’10’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’11’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’12’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’14’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’18’) OR
                      (dbo.v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 = ’21’)

Leave a Comment