‎10-14-2016 03:06 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tsysOS.OSname,
tblOperatingsystem.Caption
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where (tblAssets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%DeviceLock Service%') And
tsysOS.OSname = 'Win 7' And tblAssetCustom.State = 1) Or
(tblAssets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%DeviceLock Service%') And
tsysOS.OSname = 'Win 10' And tblAssetCustom.State = 1)
Order By tblAssets.Domain,
tblAssets.AssetName
Solved! Go to Solution.
‎10-14-2016 06:00 PM
‎10-17-2016 04:38 PM
‎10-14-2016 06:00 PM
‎10-14-2016 04:50 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tsysOS.OSname,
tblOperatingsystem.Caption
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Where
(tblAssets.AssetID Like
'Select Top 1000000 tblAssets.AssetID As AssetID1 From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID Where tblSoftwareUni.softwareName Like ''%DeviceLock%''' And tsysOS.OSname = 'Win 7' And tblAssetCustom.State = 1) Or
(tblAssets.AssetID Like
'Select Top 1000000 tblAssets.AssetID As AssetID1 From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID Inner Join tblAssets On tblAssets.AssetID = tblSoftware.AssetID Where tblSoftwareUni.softwareName Like ''%DeviceLock%''' And tsysOS.OSname = 'Win 10' And tblAssetCustom.State = 1)
Order By tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now