Notification

Icon
Error

Chart: Microsoft Office 365 Versions - Displays the different versions of Office 365 and the count

Posted: Wednesday, April 5, 2017 3:57:20 PM(UTC)
suspect0

suspect0

Member Original PosterPosts: 3
3
Like
It took me a while to get this working, mainly due to my lack of knowledge in doing these queries. This will grab the version number of the Office 365 installation and give the total amount of clients with that version. In turn it can be used for chart widgets.

Code:
Select Top 1000000 tblSoftware.softwareVersion,
  Count(tblAssets.AssetID) As Total,
  tblSoftware.softwareVersion As Version
From tblAssets
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
  Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%microsoft office%365%' And
  tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Group By tblSoftware.softwareVersion
Order By Version,
  Total Desc
Bruce.B
#1Bruce.B Member Administration Posts: 563  
posted: 4/10/2017 8:56:51 AM(UTC)
Slightly modified the report as you were selecting softwareversion twice

Code:
Select Top 1000000 tblSoftware.softwareVersion As Version,
  Count(tblAssets.AssetID) As Total
From tblAssets
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
  Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%microsoft office%365%' And
  tblAssetCustom.State = 1 And tblAssets.Assettype = -1
Group By tblSoftware.softwareVersion,
  tblSoftwareUni.softwareName
Order By Version,
  Total Desc
studerje
#2studerje Member Posts: 7  
posted: 4/26/2017 3:59:03 PM(UTC)
This works great.
It would be really nice if you could click the version and have it take you to a list of computers running that version.
craigsmith.lpi
#3craigsmith.lpi Member Posts: 2  
posted: 10/19/2020 10:18:21 PM(UTC)
I also slightly tweaked the report to accommodate the app's name change to Microsoft 365 Apps. I think the syntax could be tweaked for efficiency, but this works.

Code:
Select Top 1000000 tblSoftware.softwareVersion As Version,
  Count(tblAssets.AssetID) As Total
From tblAssets
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
  Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where (tblSoftwareUni.softwareName Like '%microsoft office%365%') Or
  (tblSoftwareUni.softwareName Like '%microsoft 365%' And tblAssetCustom.State =
  1 And tblAssets.Assettype = -1)
Group By tblSoftware.softwareVersion,
  tblSoftwareUni.softwareName
Order By Version,
  Total Desc


Active Discussions

Lansweeper Report by Category
by  CaroleEGCU   Go to last post Go to first unread
Last post: Yesterday at 7:22:56 PM(UTC)
Lansweeper Devices connected to wired and wifi
by  chenegh  
Go to last post Go to first unread
Last post: Yesterday at 5:27:49 PM(UTC)
Lansweeper Report for detecting network printers that have wifi enabled?
by  chenegh   Go to last post Go to first unread
Last post: Yesterday at 4:55:16 PM(UTC)
Lansweeper Full asset report with and without ad relationship
by  Andy.S   Go to last post Go to first unread
Last post: Yesterday at 10:45:13 AM(UTC)
Report Center Show newly discovered software
by  CyberCitizen  
Go to last post Go to first unread
Last post: 6/16/2021 12:06:21 AM(UTC)