‎01-04-2018 12:11 PM
‎01-04-2018 03:18 PM
‎01-04-2018 01:55 PM
Select Top 1000000 tblAssets.AssetName,
tblAssets.IPAddress,
tsysOS.OSname As OS,
tblAssetCustom.Model,
tblAssets.Username,
tblADComputers.Description,
tsysIPLocations.IPLocation,
tblAssets.Lastseen,
tblAssets.Memory,
tblAssets.AssetID,
Sum(Cast(Cast(tblDiskdrives.Size As BigInt) / 1024 / 1024 / 1024 As Numeric))
As [Total size (GB)],
Sum(Cast(Cast(tblDiskdrives.Freespace As BigInt) / 1024 / 1024 /
1024 As Numeric)) As [Free in GB]
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 tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Inner Join tblDiskdrives On tblAssets.AssetID = tblDiskdrives.AssetID
Where tblAssets.IPAddress Like '10.86.%.%'
Group By tblAssets.AssetName,
tblAssets.IPAddress,
tsysOS.OSname,
tblAssetCustom.Model,
tblAssets.Username,
tblADComputers.Description,
tsysIPLocations.IPLocation,
tblAssets.Lastseen,
tblAssets.Memory,
tblAssets.AssetID
Order By tblAssets.AssetName,
tblAssets.AssetID
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now