Hi, I just want to preface this with Yes, I have googled the hell out of this and still have no resolution and the included reports do not cover what I need. Thanks :)
I have a requirement to create reports based on installed software applications our procurement team have requested with specific computer/user information included. I have most of the details sorted, however I need to add Hardware Serial Number to the report below example for Visio. Ideally I would also be able to replace 'vu.[Given Name], vu.[Surname]' with Full name from AD as well.
SELECT vc.Guid, vc.Name AS ComputerName, vc.[OS Name] AS OperatingSystem, arp.DisplayName AS SoftwareName, arp.DisplayVersion AS SoftwareVersion, vu.Name AS UserName, vu.[Given Name], vu.[Surname], vu.Department
FROM vComputer vc
RIGHT JOIN (SELECT DISTINCT Name FROM vComputer) AS vc1
ON vc1.Name = vc.Name
INNER JOIN Inv_AddRemoveProgram arp ON vc.Guid = arp._ResourceGuid
INNER JOIN vUser vu ON vc.[User] = vu.Name
WHERE arp.DisplayName LIKE '%Microsoft Visio 2000%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Office Visio Standard 2007%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Office Visio Professional 2007%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Office Visio 2010%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Visio Standard 2013%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Visio Professional 2013%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Visio Standard 2016%' AND arp.InstallFlag=1
OR arp.DisplayName LIKE '%Visio Professional 2016%' AND arp.InstallFlag=1
Any help would be greatly appreciated.
Thanks
Mark