‎03-08-2018 07:37 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tsysOS.Image As icon,
tblBIOS.Caption,
tblBIOS.Manufacturer,
tblAssetCustom.Model,
tblBIOS.SerialNumberl,
tblBIOS.Lastchanged,
tblBIOS.Version,
tblBIOS.SMBIOSBIOSVersion As BIOSVersion,
CASE WHEN tblAssetCustom.Model = 'Latitude E5540' And tblBIOS.SMBIOSBIOSVersion < 'A21' Then 'Needs Patch'
ELSE 'Patched' as BiosPatched
From tblAssets,
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblAssetCustom.State = 1
Order By tblAssets.AssetName
‎03-09-2018 12:47 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssets.Domain,
tsysOS.Image As icon,
tblBIOS.SerialNumber As Serial,
tblBIOS.SMBIOSBIOSVersion As [Current Bios Ver],
tblBIOS.Lastchanged As [Bios Last Changed],
tblBIOS.ReleaseDate As [BIOS Release Date],
Case
When tblAssetCustom.Model = 'Inspiron 3650' And tblBIOS.SMBIOSBIOSVersion <
'9.9.9.9' Then 'Needs Patch'
When tblAssetCustom.Model = 'Latitude E5540' And tblBIOS.SMBIOSBIOSVersion <
'A21' Then 'Needs Patch'
When tblAssetCustom.Model = 'Latitude E6540' And tblBIOS.SMBIOSBIOSVersion <
'A24' Then 'Needs Patch'
When tblAssetCustom.Model = 'Optiplex 390' And tblBIOS.SMBIOSBIOSVersion <
'A999' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 3010' And tblBIOS.SMBIOSBIOSVersion <
'A999' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 3020' And tblBIOS.SMBIOSBIOSVersion <
'A17' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 3020M' And tblBIOS.SMBIOSBIOSVersion <
'A12' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 3040' And tblBIOS.SMBIOSBIOSVersion <
'1.6.1' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 3050' And tblBIOS.SMBIOSBIOSVersion <
'1.7.9' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 7010' And tblBIOS.SMBIOSBIOSVersion <
'A999' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 7020' And tblBIOS.SMBIOSBIOSVersion <
'A15' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 7040' And tblBIOS.SMBIOSBIOSVersion <
'1.8.1' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 7440 AIO' And
tblBIOS.SMBIOSBIOSVersion < '1.8.6' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 9010' And tblBIOS.SMBIOSBIOSVersion <
'A999' Then 'Needs Patch'
When tblAssetCustom.Model = 'OptiPlex 9020' And tblBIOS.SMBIOSBIOSVersion <
'A22' Then 'Needs Patch'
When tblAssetCustom.Model = 'Precision M2800' And
tblBIOS.SMBIOSBIOSVersion < 'A14' Then 'Needs Patch'
When tblAssetCustom.Model = 'XPS 13 9350' And tblBIOS.SMBIOSBIOSVersion <
'1.6.1' Then 'Needs Patch'
When tblAssetCustom.Model = 'XPS 13 9360' And tblBIOS.SMBIOSBIOSVersion <
'2.5.1' Then 'Needs Patch'
When tblAssetCustom.Model = 'XPS 15 9560' And tblBIOS.SMBIOSBIOSVersion <
'1.7.1' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad E570' And tblBIOS.SMBIOSBIOSVersion <
'ZZZZZZZZ (99.99 )' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad T530' And tblBIOS.SMBIOSBIOSVersion <
'ZZZZZZZZ (99.99 )' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad T550' And tblBIOS.SMBIOSBIOSVersion <
'N11ET44WT5 (1.20 )' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad T560' And tblBIOS.SMBIOSBIOSVersion <
'N1KET36W (1.23 )' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad T570' And tblBIOS.SMBIOSBIOSVersion <
'ZZZZZZZZ (99.99 )' Then 'Needs Patch'
When tblAssetCustom.Model = 'ThinkPad X1 Carbon 4th' And
tblBIOS.SMBIOSBIOSVersion < 'ZZZZZZZZ (99.99 )' Then 'Needs Patch'
Else 'Patched' End As [BIOS Patched]
From tblAssets
Inner Join tblBIOS On tblAssets.AssetID = tblBIOS.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblAssetCustom.Manufacturer Not Like 'VMware, Inc.' And
tblAssetCustom.State = 1
Order By tblAssets.AssetName
‎03-09-2018 12:17 AM
Issues creating report...
Where
tblAssetCustom.State = 1
AND tblAssetCustom.Model In ('Latitude E5540', 'Model 1', 'Model 2')
Case
When tblAssetCustom.Model = 'Latitude E5540' And tblBIOS.SMBIOSBIOSVersion < 'A21' Then 'Needs Patch'
When tblAssetCustom.Model = 'Latitude E5540' And tblBIOS.SMBIOSBIOSVersion >= 'A21' Then 'Patched'
When tblAssetCustom.Model = 'Model 1' And tblBIOS.SMBIOSBIOSVersion < 'A21' Then 'Needs Patch'
When tblAssetCustom.Model = 'Model 1' And tblBIOS.SMBIOSBIOSVersion >= 'A21' Then 'Patched'
When tblAssetCustom.Model = 'Model 2' And tblBIOS.SMBIOSBIOSVersion < 'A21' Then 'Needs Patch'
When tblAssetCustom.Model = 'Model 2' And tblBIOS.SMBIOSBIOSVersion >= 'A21' Then 'Patched'
Else 'Not checked'
End As BiosPatched
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now