‎06-15-2018 03:45 PM
‎06-27-2018 04:13 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblRegistry.Valuename,
tblRegistry.Value,
Convert(datetime,tblRegistry.Value,104) As PatternDate,
tblOperatingsystem.Caption,
tblAssets.Domain
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Inner Join tblOperatingsystem On
tblAssets.AssetID = tblOperatingsystem.AssetID
Where tblAssets.Lastseen > DateAdd(Day, -14, GetDate()) And
tblRegistry.Valuename = 'PatternDate' And
Convert(datetime,tblRegistry.Value,104) > DateAdd(Day, -14, GetDate()) And
tblOperatingsystem.Caption Like '%server%' And tblAssetCustom.State = 1
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now