→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎06-26-2020 05:41 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblDiskdrives.Caption,
Ceiling(tblDiskdrives.Freespace / 1024 / 1024 / 1024) As FreeGB,
Ceiling((tblDiskdrives.Size / 1024 / 1024 / 1024) - (tblDiskdrives.Freespace /
1024 / 1024 / 1024)) As UsedGB,
Ceiling(tblDiskdrives.Size / 1024 / 1024 / 1024) As TotalGB,
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 (tblAssets.IPAddress Like '192.168.1.31') Or
(tblAssets.IPAddress Like '192.168.1.34' And Cast(tblDiskdrives.Freespace /
1024 / 1024 / 1024 As numeric) < 100 And Cast(tblDiskdrives.Size / 1024 /
1024 / 1024 As numeric) <> 0 And Cast(tblDiskdrives.Size / 1024 / 1024 /
1024 As numeric) > 10 And tblAssetCustom.State = 1 And
tblDiskdrives.DriveType = 3)
Order By tblAssets.Domain,
tblAssets.AssetName,
tblDiskdrives.Caption
‎06-26-2020 09:32 PM
‎06-26-2020 07:03 PM
Whereto
(tblAssets.IPAddress Like '192.168.1.31')
Or ( tblAssets.IPAddress Like '192.168.1.34'
And Cast(tblDiskdrives.Freespace / 1024 / 1024 / 1024 As numeric) < 100
And Cast(tblDiskdrives.Size / 1024 / 1024 / 1024 As numeric) <> 0
And Cast(tblDiskdrives.Size / 1024 / 1024 / 1024 As numeric) > 10
And tblAssetCustom.State = 1
And tblDiskdrives.DriveType = 3
)
Where
(tblAssets.IPAddress Like '192.168.1.31' Or tblAssets.IPAddress Like '192.168.1.34')
And Cast(tblDiskdrives.Freespace / 1024 / 1024 / 1024 As numeric) < 100
And Cast(tblDiskdrives.Size / 1024 / 1024 / 1024 As numeric) <> 0
And Cast(tblDiskdrives.Size / 1024 / 1024 / 1024 As numeric) > 10
And tblAssetCustom.State = 1
And tblDiskdrives.DriveType = 3
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now