→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎02-28-2018 06:26 PM
‎03-05-2018 11:10 PM
SELECT Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblComputersystem.Domainrole,
tbldomainroles.Domainrolename, -- optional
tsysOS.OSname, -- optional
tblOperatingsystem.Caption -- optional
FROM
tblAssets
INNER JOIN tblAssetCustom ON tblAssets.AssetID = tblAssetCustom.AssetID
INNER JOIN tsysAssetTypes ON tsysAssetTypes.AssetType = tblAssets.Assettype
INNER JOIN tblComputersystem ON tblAssets.AssetID = tblComputersystem.AssetID
-- Optional for role description
INNER JOIN tbldomainroles ON tbldomainroles.Domainrole = tblComputersystem.Domainrole
-- Optional for short OS name
INNER JOIN tsysOS ON tblAssets.OScode = tsysOS.OScode
-- Optional for long OS name
tblOperatingsystem ON tblAssets.AssetID = tblOperatingsystem.AssetID
WHERE
tblComputersystem.Domainrole > 1 -- only Windows servers
AND tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now