Wednesday, February 22, 2017

BIOS Report for Dell and HP

When moving to Windows 10, you need to ensure that you have the BIOS up-to-date as to not have issues with UEFI or any other component.  Use these SQL statements to create your BIOS reports.


I am only trying to look at Workstation models and not servers.  HP was my second set of queries and it was easier to simply exclude the server models.  Use and modify as necessary.


HP
SELECT CompSys.Manufacturer0 as 'OEM', CompSys.model0 as 'Model',BIOS.SMBIOSBIOSVERSION0 as 'BIOSVersion', COUNT(Sys.Resourceid) AS 'TotalSystems'
 FROM V_R_System as Sys
 LEFT JOIN V_GS_PC_BIOS as BIOS on Sys.resourceid = BIOS.resourceid
 LEFT JOIN V_GS_COMPUTER_SYSTEM as CompSys on Sys.resourceid = CompSys.resourceid
 WHERE
 (CompSys.Manufacturer0 LIKE '%HP%'OR
  CompSys.Manufacturer0 LIKE '%Hewlett-Packard%') AND
 CompSys.model0 NOT like '%ProLiant%'
 GROUP BY CompSys.Manufacturer0,CompSys.model0, BIOS.SMBIOSBIOSVersion0
 ORDER BY CompSys.Model0, BIOS.SMBIOSBIOSVersion0




Dell
SELECT CompSys.Manufacturer0 as 'OEM', CompSys.model0 as 'Model',BIOS.SMBIOSBIOSVERSION0 as 'BIOSVersion', COUNT(Sys.Resourceid) AS 'TotalSystems'
 FROM V_R_System as Sys
 LEFT JOIN V_GS_PC_BIOS as BIOS on Sys.resourceid = BIOS.resourceid
 LEFT JOIN V_GS_COMPUTER_SYSTEM as CompSys on Sys.resourceid = CompSys.resourceid
 WHERE
 CompSys.Manufacturer0 LIKE '%dell%'
 AND (CompSys.Model0 LIKE '%optiplex%'
 OR CompSys.Model0 LIKE '%latitude%'
 OR CompSys.Model0 LIKE '%precision%')
 GROUP BY CompSys.Manufacturer0,CompSys.model0, BIOS.SMBIOSBIOSVersion0
 ORDER BY CompSys.Model0, BIOS.SMBIOSBIOSVersion0