→ The Lansweeper Customer Excellence Awards 2024 - Submit Your Project Now! Learn More & Enter Here
‎08-31-2016 10:26 AM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblADComputers.OU,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tsysAssetTypes.AssetTypename = 'Windows' And
(tblADComputers.OU Like '%OU=Laptop%' And
tblSoftwareUni.softwareName Not Like 'Pulse Secure Installer Service' And
tblAssetCustom.State = 1
‎09-01-2016 05:17 PM
‎09-01-2016 11:08 AM
‎09-01-2016 10:26 AM
‎08-31-2016 07:42 PM
Select Top 1000000
tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblADComputers.OU
From
tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Where
tsysAssetTypes.AssetTypename = 'Windows'
And tblADComputers.OU Like '%OU=Laptop%'
And tblAssetCustom.State = 1
AND tblAssets.AssetID Not In (Select
Top 1 tblSoftware.AssetID
From
tblSoftware
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where
tblSoftware.AssetID = tblAssets.AssetID
And dbo.tblsoftwareuni.softwareName Like 'Pulse Secure Installer Service')
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now