Notification

Icon
Error

Report: All Apple Mac devices with Memory RAM asset - Report: All Apple Mac devices with Memory RAM asset

Posted: Thursday, March 4, 2021 8:19:19 PM(UTC)
QueryLSTech

QueryLSTech

Member Original PosterPosts: 4
0
Like
Hey, I do have a report to scan all Macbooks devices, which works great but when I've tried to add tblAssets.Memory it doesnt show anything, any suggestions?! Storage HD size would be great to have too.

Thanks.

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssetCustom.Serialnumber,
tblAssets.Memory,
tsysAssetTypes.AssetTypename As Type,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssetCustom.PurchaseDate As PurchaseDate,
tblAssetCustom.Warrantydate As WarrantyExpiration
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Where tsysAssetTypes.AssetTypename = 'Apple Mac' And tblAssetCustom.State = 1
Order By tblAssets.AssetID,
tblAssets.AssetName
gabrielo
#1gabrielo Member Posts: 1  
posted: 6/16/2021 3:17:24 PM(UTC)
Hello. This is the script I use

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
RTrim(SubString(tblMacOSInfo.ComputerName, CharIndex(' de ',
tblMacOSInfo.ComputerName, 0) + 4, 25)) As Usuario,
tblAssetCustom.Serialnumber,
tsysAssetTypes.AssetTypeIcon10 As icon,
SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%', tblAssetCustom.Model))
As Modelo,
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) As Version,
Case
When ((SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%iMac%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '14,1') Or
(SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%Macmini%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '6,2') Or
(SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%MacPro%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '6,1') Or
(SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%MacBook%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '8,1') Or
(SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%MacBookAir%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '5,2') Or
(SubString(tblAssetCustom.Model, 0, PatIndex('%[0-9]%',
tblAssetCustom.Model)) Like '%MacBookPro%' And
RTrim(SubString(tblAssetCustom.Model, PatIndex('%[0-9]%',
tblAssetCustom.Model), 5)) < '10,2')) Then 'NO'
Else 'SI'
End As [Actualizable (BigSur) ?],
tblMacOSInfo.KernelVersion,
tblMacHwOverview.Memory As [Memoria RAM],
SubString(tblMacPartitions.Size, 0, PatIndex('%G%', tblMacPartitions.Size)) As
Disco,
tblAssets.Processor,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join lansweeperdb.dbo.tblMacOSInfo On tblAssets.AssetID =
tblMacOSInfo.AssetID
Inner Join lansweeperdb.dbo.tblMacHwOverview On tblAssets.AssetID =
tblMacHwOverview.AssetID
Inner Join lansweeperdb.dbo.tblAssetCustom tblAssetCustom1 On
tblAssets.AssetID = tblAssetCustom1.AssetID
Inner Join lansweeperdb.dbo.tblMacPartitions On tblAssets.AssetID =
tblMacPartitions.AssetID
Where tblMacPartitions.MountedOn Like '%/' And tsysAssetTypes.AssetTypename =
'Apple Mac' And tblAssetCustom.State = 1
Order By tblAssets.AssetID,
tblAssets.AssetName

Active Discussions

Lansweeper Combined Vulnerability Report Q1 2019
by  BKolodny   Go to last post Go to first unread
Last post: Yesterday at 5:29:43 PM(UTC)
Lansweeper Last user, login time and null entries
by  cross_eur  
Go to last post Go to first unread
Last post: 7/29/2021 5:44:36 PM(UTC)
Lansweeper Report Merge
by  EnjetIT  
Go to last post Go to first unread
Last post: 7/29/2021 5:31:06 PM(UTC)
Lansweeper Software per AD group
by  CPappas   Go to last post Go to first unread
Last post: 7/29/2021 4:00:40 PM(UTC)
Lansweeper Stale Tickets
by  brodiemac-too  
Go to last post Go to first unread
Last post: 7/28/2021 8:47:09 PM(UTC)
Lansweeper MacOS IOMobileFrameBuffer 0-day Report
by  Esben.D   Go to last post Go to first unread
Last post: 7/28/2021 2:56:46 PM(UTC)
Lansweeper SeriousSAM Vulnerability
by  Esben.D  
Go to last post Go to first unread
Last post: 7/28/2021 9:40:05 AM(UTC)