→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎03-05-2021 07:28 PM
Select Distinct Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Userdomain,
tblAssets.IPAddress,
tsysOS.OSname,
tblAssets.Description,
tblAssetCustom.State
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where (tsysOS.OSname Like '%Win 2012%' Or tsysOS.OSname Like '%Win 2016%' Or
tsysOS.OSname Like '%Win 2008%' Or tsysOS.OSname Like '%Win 2000 S%' Or
tsysOS.OSname Like '%Win 2019%') And tblAssetCustom.State = 1 And
tblSoftwareUni.softwareName Not Like 'SoftwarePackageToLookFor'
Order By tblAssets.Domain,
tblAssets.AssetName
‎03-09-2021 03:22 PM
Select Top 1000000
tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Userdomain,
tblAssets.IPAddress,
tsysOS.OSname,
tblAssets.Description,
tblAssetCustom.State
From
tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
INNER JOIN tblComputerSystem ON tblComputerSystem.AssetID = tblAssets.AssetID
Where
tblAssets.AssetType = -1 -- Windows
AND tblComputerSystem.DomainRole > 1 -- server
And tblAssetCustom.State = 1
AND tblAssets.AssetID Not In (Select Top 1000000
tblSoftware.AssetID
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like '%Software not installed%')
Order By
tblAssets.Domain,
tblAssets.AssetName
‎03-05-2021 11:07 PM
‎03-05-2021 09:39 PM
Select Top 1000000
tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Userdomain,
tblAssets.IPAddress,
tsysOS.OSname,
tblAssets.Description,
tblAssetCustom.State
From
tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where
(tsysOS.OSname Like '%Win 2012%'
Or tsysOS.OSname Like '%Win 2016%'
Or tsysOS.OSname Like '%Win 2008%'
Or tsysOS.OSname Like '%Win 2000 S%'
Or tsysOS.OSname Like '%Win 2019%')
And tblAssetCustom.State = 1
Order By
tblAssets.Domain,
tblAssets.AssetName
Where
(tsysOS.OSname Like '%Win 2012%'
Or tsysOS.OSname Like '%Win 2016%'
Or tsysOS.OSname Like '%Win 2008%'
Or tsysOS.OSname Like '%Win 2000 S%'
Or tsysOS.OSname Like '%Win 2019%')
And tblAssetCustom.State = 1
AND tblAssets.AssetID Not In (Select Top 1000000
tblSoftware.AssetID
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftwareUni.softwareName Like '%Software not installed%')
‎03-05-2021 09:04 PM
‎03-05-2021 08:41 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now