→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎11-15-2015 03:04 AM
Solved! Go to Solution.
‎11-19-2015 09:31 AM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.IPAddress,
tblAssets.Mac,
tblOperatingsystem.Caption As OS,
tblLanguages.Language As OSLanguage,
tblOperatingsystem.SerialNumber As ProductID,
tblSerialnumber.ProductKey,
Case When tblAssetCustom.Model Like '%virtual%' Then 'virtual' Else 'physical'
End As VirtualCheck,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
tblSoftware.Lastchanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblADusers On tblADusers.Username = tblAssets.Username And
tblADusers.Userdomain = tblAssets.Userdomain
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblLanguages On tblLanguages.LanguageCode =
tblOperatingsystem.OSLanguage
Inner Join tblSerialnumber On tblSerialnumber.AssetID =
tblOperatingsystem.AssetID And tblSerialnumber.ProductID =
tblOperatingsystem.SerialNumber
Where (tblSoftwareUni.softwareName Like 'microsoft office%' Or
tblSoftwareUni.softwareName Like '%visio%' Or tblSoftwareUni.softwareName
Like '%project%' Or tblSoftwareUni.softwareName Like '%visual studio%' Or
tblSoftwareUni.softwareName Like '%citrix%') And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
Software
‎11-19-2015 09:31 AM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblADusers.Firstname,
tblADusers.Lastname,
tblADusers.Name,
tblADusers.Displayname,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblAssets.IPAddress,
tblAssets.Mac,
tblOperatingsystem.Caption As OS,
tblLanguages.Language As OSLanguage,
tblOperatingsystem.SerialNumber As ProductID,
tblSerialnumber.ProductKey,
Case When tblAssetCustom.Model Like '%virtual%' Then 'virtual' Else 'physical'
End As VirtualCheck,
tblSoftwareUni.softwareName As Software,
tblSoftware.softwareVersion As Version,
tblSoftwareUni.SoftwarePublisher As Publisher,
tblSoftware.Lastchanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tblADusers On tblADusers.Username = tblAssets.Username And
tblADusers.Userdomain = tblAssets.Userdomain
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Inner Join tblOperatingsystem
On tblAssets.AssetID = tblOperatingsystem.AssetID
Inner Join tblLanguages On tblLanguages.LanguageCode =
tblOperatingsystem.OSLanguage
Inner Join tblSerialnumber On tblSerialnumber.AssetID =
tblOperatingsystem.AssetID And tblSerialnumber.ProductID =
tblOperatingsystem.SerialNumber
Where (tblSoftwareUni.softwareName Like 'microsoft office%' Or
tblSoftwareUni.softwareName Like '%visio%' Or tblSoftwareUni.softwareName
Like '%project%' Or tblSoftwareUni.softwareName Like '%visual studio%' Or
tblSoftwareUni.softwareName Like '%citrix%') And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName,
Software
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now