Here is the query I have, however it is returning clients that have Lync 2010 and Office 2007 but do not have Skype for Business on them. I created One custom scan using a registry key in the HKCU\Software\Microsoft\Office\15.0\Lync location and could create a second to look in the Office 16.0 folder for our Office 2016 Users and then merge the two reports. But if theres a SQL guru out there who could possibly spot an error in my query below it would be much simpler to only have one report to encompass all. In the query I am searching for the KB that our WSUS pushed out for the Skype for Business client, I have also excluded any Servers.
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,
tblComputersystem.Domainrole
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode And tblAssets.OScode =
tsysOS.OScode
Inner Join tblComputersystem On tblAssets.AssetID = tblComputersystem.AssetID
Where
tblAssets.AssetID Not In (Select Top 1000000 tblQuickFixEngineering.AssetID
From tblQuickFixEngineering Inner Join tblQuickFixEngineeringUni
On tblQuickFixEngineeringUni.QFEID = tblQuickFixEngineering.QFEID
Where tblQuickFixEngineeringUni.HotFixID Like 'KB2889853') And
tblComputersystem.Domainrole < 2 And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName