Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nashterator
Engaged Sweeper III

Good day.

Is it possible to create a report that would show - the computer name,
the installed version of Microsoft Office (2016, 2019) and bit (x86 or x64)

Thank you

1 ACCEPTED SOLUTION
KevinA-REJIS
Champion Sweeper III

Give this a try (it also has the software build): 

Select Distinct Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tblSoftwareUni.softwareName,
  tblSoftware.softwareVersion,
  Case
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '64-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '32-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office 15\root\Office15\WINWORD.EXE'
      And tblFileVersions.Found = 1 Then '64-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office 15\root\Office15\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '32-bit'
  End As 'Architecture',
  tsysOS.Image As icon
From tblAssets
  Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
  Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
  Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
  Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblSoftwareUni.softwareName Like '%Microsoft Office%en-us%' And
  tblAssetCustom.State = 1 And ((tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office 15\root\Office15\WINWORD.EXE'
      And tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office 15\root\Office15\WINWORD.EXE' And
      tblFileVersions.Found = 1))
Order By tblAssets.AssetName

View solution in original post

2 REPLIES 2
Nashterator
Engaged Sweeper III

Thanks for Idea!

KevinA-REJIS
Champion Sweeper III

Give this a try (it also has the software build): 

Select Distinct Top 1000000 tblAssets.AssetID,
  tblAssets.AssetName,
  tblSoftwareUni.softwareName,
  tblSoftware.softwareVersion,
  Case
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '64-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '32-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office 15\root\Office15\WINWORD.EXE'
      And tblFileVersions.Found = 1 Then '64-bit'
    When
      tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office 15\root\Office15\WINWORD.EXE' And
      tblFileVersions.Found = 1 Then '32-bit'
  End As 'Architecture',
  tsysOS.Image As icon
From tblAssets
  Inner Join tblSoftware On tblAssets.AssetID = tblSoftware.AssetID
  Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
  Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
  Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
  Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
  Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblSoftwareUni.softwareName Like '%Microsoft Office%en-us%' And
  tblAssetCustom.State = 1 And ((tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE' And
      tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files\Microsoft Office 15\root\Office15\WINWORD.EXE'
      And tblFileVersions.Found = 1) Or (tblFileVersions.FilePathfull =
      'C:\Program Files (x86)\Microsoft Office 15\root\Office15\WINWORD.EXE' And
      tblFileVersions.Found = 1))
Order By tblAssets.AssetName

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now