‎01-11-2017 10:41 PM
Solved! Go to Solution.
‎01-12-2017 02:20 PM
‎07-24-2020 03:35 PM
WHERE
tblADComputer.OU = 'OU=Computers,OU=SC,OU=SG,DC=SERVERDOMAIN,DC=local'
WHERE
( tblADComputers.OU LIKE '%OU=Computers%'
AND tblADComputers.OU LIKE '%OU=SC%'
AND tblADComputers.OU LIKE '%OU=SG%'
AND tblADComputers.OU LIKE '%DC=SERVERDOMAIN%'
AND tblADComputers.OU LIKE '%DC=local%'
)
‎07-27-2020 10:08 AM
RC62N wrote:
Looking at my database, I see that there are no spaces in tblADComputers.OU, so if you want to make an exact match you would need to use
‎07-24-2020 07:30 AM
‎01-12-2017 02:20 PM
‎01-12-2017 09:47 AM
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,
tblADComputers.OU
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.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 'Skype for Business Basic 2016%' And
tblADComputers.OU = 'Computers'
Order By tblAssets.Domain,
tblAssets.AssetName
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now