‎05-28-2014 01:51 AM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblDiskdrives.Caption,
Ceiling(tblDiskdrives.Freespace / 1024 / 1024) As FreeMB,
Ceiling((tblDiskdrives.Size / 1024 / 1024) - (tblDiskdrives.Freespace / 1024 /
1024)) As UsedMB,
Ceiling(tblDiskdrives.Size / 1024 / 1024) As TotalMB,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblAssetCustom.State = 1 And tblComputersystem.Domainrole > 1 And
tblDiskdrives.DriveType = 3
Order By tblAssets.Domain,
tblAssets.AssetName,
tblDiskdrives.Caption
Solved! Go to Solution.
‎05-28-2014 02:13 AM
WHERE
tblAssets.IPAddress LIKE '192.168.1.%'
AND tblAssetCustom.State = 1 -- active
AND tblComputersystem.Domainrole > 1 -- server
AND tblDiskdrives.DriveType = 3 -- hard drive
‎05-28-2014 09:14 PM
‎06-09-2021 07:03 PM
Culejoe wrote:
That worked perfectly! Thanks for the help.
‎05-28-2014 02:13 AM
WHERE
tblAssets.IPAddress LIKE '192.168.1.%'
AND tblAssetCustom.State = 1 -- active
AND tblComputersystem.Domainrole > 1 -- server
AND tblDiskdrives.DriveType = 3 -- hard drive
‎06-09-2021 07:09 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now