Notification

Icon
Error

Report that shows two pieces of software

Posted: Wednesday, May 23, 2018 9:15:42 PM(UTC)
TylerO

TylerO

Member Original PosterPosts: 4
0
Like
This issue has been solved! Click here to view the solution
We are deploying an Outlook plug-in to our users. I would like to deploy it to all computers using Office 365, that don't already have the plug-in. The report that I've built below only returns computers with Office365, but doesn't filter out the computers that already have the plug-in. Where am I going wrong?

Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblSoftwareUni.softwareName,
tblSoftware.softwareVersion,
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like 'Microsoft Office 365%' And
tblSoftwareUni.softwareName Not Like 'EMS for Outlook'
Esben.D
#1Esben.D Member Administration Posts: 1,933  
posted: 5/28/2018 3:58:42 PM(UTC)
Code:
tblSoftwareUni.softwareName Not Like 'EMS for Outlook'
Will return all software which does not match that string. This means that it will pretty much return all software you have on the asset.

I would the report in this topic: https://www.lansweeper.c...-software-installed.aspx

I You can then add the software which you do want to have installed to it. I think the query below should work.

Code:
Select Top 1000000 tsysOS.Image As icon,
  tblAssets.AssetID,
  tblAssets.AssetName,
  tblSoftwareUni.softwareName,
  tblAssets.Domain,
  tblAssets.Username,
  tblAssets.Userdomain,
  tblAssets.IPAddress,
  tblAssets.Firstseen,
  tblAssets.Lastseen,
  tblAssets.Lasttried
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 tblAssets.AssetID Not In (Select Top 1000000 tblSoftware.AssetID
  From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID =
      tblSoftware.softID
  Where tblSoftwareUni.softwareName Like '%EMS for Outlook%') And
  tblSoftwareUni.softwareName Like 'Microsoft Office 365%' And
  tblAssetCustom.State = 1
Order By tblAssets.Domain,
  tblAssets.AssetName
TylerO
#2TylerO Member Original PosterPosts: 4  
posted: 5/28/2018 6:34:38 PM(UTC)
Thanks Charles.X! That makes perfect sense about it returning all software. This solution works perfectly.
Jeyabal
#3Jeyabal Member Posts: 1  
posted: 10/18/2019 1:14:52 AM(UTC)
Originally Posted by: TylerO Go to Quoted Post
Thanks Charles.X! That makes perfect sense about it returning all software. This solution works perfectly.



How to exclude language packs?

Active Discussions

Lansweeper Physical Disk Size
by  RC62N   Go to last post Go to first unread
Last post: Yesterday at 5:18:38 PM(UTC)
Lansweeper AD User report
by  GMcCartney  
Go to last post Go to first unread
Last post: Yesterday at 12:07:22 PM(UTC)
Lansweeper PC Build Report Missing Software
by  Andy.S   Go to last post Go to first unread
Last post: Yesterday at 10:28:40 AM(UTC)
Lansweeper Creat report ALL office (ms officce,libreoffice,openoffice)
by  RC62N  
Go to last post Go to first unread
Last post: 11/15/2019 9:58:33 PM(UTC)
Lansweeper How to Report on Dynamic Asset Groups
by  Rob-CD   Go to last post Go to first unread
Last post: 11/15/2019 11:49:22 AM(UTC)
Lansweeper Custom All Assets Report Help
by  Matt Fuhrman  
Go to last post Go to first unread
Last post: 11/14/2019 3:55:25 PM(UTC)
Report Center Calculate your network's computing power
by  GBInnovation   Go to last post Go to first unread
Last post: 11/13/2019 12:11:18 PM(UTC)
Lansweeper Patch Tuesday report, last 3 months
by  JacobH  
Go to last post Go to first unread
Last post: 11/12/2019 5:28:37 PM(UTC)