Custom file scanning isn't a problem. I already expected that to be necessary but I didn't know, how you can use the information from the scan in your reports.
Thanks for the help
So here's the report I'il be using:
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.Lastseen
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 (tsysOS.OSname Like '%Win 7%' Or tsysOS.OSname Like '%Win 10%')
And tblAssets.AssetID In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Microsoft Office Standard 2016%')
And tblAssets.AssetID Not In (Select tblFileVersions.AssetID
From tblFileVersions
Where tblFileVersions.FilePathfull Like 'C:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.EXE'
And tblFileVersions.Found = 'True')
And tblAssetCustom.State = 1
Order By tblAssets.AssetName
Anyone using the report for himself keep in mind:
- the report shows only Windows 7 and Windows 10 clients. If you want to include other OS, change or remove this part.
- it's created for Office Standard 2016 but I think you can just change the name of the software and the path to the executable.
- don't forget to set up file scanning for the executable and let your assets scan BEFORE you create the report, otherwhise you will have wrong results.
- first time running the report may take a while. If you have over 1000 assets like me the website may even crash a few times. Just let it do it's thing, it will open in the end.
- because basically ALL our clients don't have it installed, my report also includes assets, that don't have any information from the file-scanning on their page yet (not scanned ones, those with scanning errors...). If you want only clients that have been successfully scanned and do not have the executable, use this version of the report instead (small changes but a very different result):
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.Lastseen
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 (tsysOS.OSname Like '%Win 7%' Or tsysOS.OSname Like '%Win 10%')
And tblAssets.AssetID In (Select Top 1000000 tblSoftware.AssetID
From tblSoftware Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblSoftware.softID
Where tblSoftwareUni.softwareName Like '%Microsoft Office Standard 2016%')
And tblAssets.AssetID In (Select tblFileVersions.AssetID
From tblFileVersions
Where tblFileVersions.FilePathfull Like 'C:\Program Files (x86)\Microsoft Office\Office16\OUTLOOK.EXE'
And tblFileVersions.Found = 'False')
And tblAssetCustom.State = 1
Order By tblAssets.AssetName