‎12-06-2016 10:21 PM
Solved! Go to Solution.
‎12-28-2016 02:51 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique As [Unique],
tsysOS.OSname,
tblAssets.Description,
tblDiskdrives.Caption,
Round(Cast(tblDiskdrives.Freespace / tblDiskdrives.Size As Float) * 100,
2) As [% Free],
Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
[total size],
tblDiskdrives.Lastchanged As [last changed],
tsysOS.Image As icon
From tblAssets
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where Round(Cast(tblDiskdrives.Freespace / tblDiskdrives.Size As Float) * 100,
2) <= 10 And Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric)
<> 0 And tblComputersystem.Domainrole > 1 And tblDiskdrives.DriveType = 3 And
tblAssetCustom.State = 1
‎12-28-2016 02:51 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique As [Unique],
tsysOS.OSname,
tblAssets.Description,
tblDiskdrives.Caption,
Round(Cast(tblDiskdrives.Freespace / tblDiskdrives.Size As Float) * 100,
2) As [% Free],
Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric) As
[total size],
tblDiskdrives.Lastchanged As [last changed],
tsysOS.Image As icon
From tblAssets
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where Round(Cast(tblDiskdrives.Freespace / tblDiskdrives.Size As Float) * 100,
2) <= 10 And Cast(Cast(tblDiskdrives.Size As bigint) / 1024 / 1024 As numeric)
<> 0 And tblComputersystem.Domainrole > 1 And tblDiskdrives.DriveType = 3 And
tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now