Hi All,
My requirement is to generate report for specific software based on add/remove entry with the column computer name, software display name,software display version, Computer model, Manfacturer, subnet address,primary user,last logged on user and last start date of the software.
My current report displays computer name, Primary user,last logged on user, software name & version with install date. Need help in adding other column such as model, manufacturer, last start date of software and last subnet address.
DECLARE @v1_TrusteeScope nvarchar(max)
SET @v1_TrusteeScope = N'%TrusteeScope%'
SELECT
[vri2_Computer].[Guid] AS [_ItemGuid],
[vri2_Computer].[Name],
[dca3_AddRemoveProgram].[DisplayName],
[dca3_AddRemoveProgram].[DisplayVersion],
[dca3_AddRemoveProgram].[InstallDate],
[dca5_AeX AC Primary User].[User],
[dca4_AeX AC Identification].[Last Logon User]
FROM
[vRM_Computer_Item] AS [vri2_Computer]
LEFT OUTER JOIN [Inv_AddRemoveProgram] AS [dca3_AddRemoveProgram]
ON ([vri2_Computer].[Guid] = [dca3_AddRemoveProgram].[_ResourceGuid])
LEFT OUTER JOIN [Inv_AeX_AC_Identification] AS [dca4_AeX AC Identification]
ON ([vri2_Computer].[Guid] = [dca4_AeX AC Identification].[_ResourceGuid])
LEFT OUTER JOIN [Inv_AeX_AC_Primary_User] AS [dca5_AeX AC Primary User]
ON ([vri2_Computer].[Guid] = [dca5_AeX AC Primary User].[_ResourceGuid])
WHERE
(
(
([dca3_AddRemoveProgram].[DisplayName] LIKE N'%AdminStudio 2015%')
)
AND
([vri2_Computer].[Guid] IN (SELECT [ResourceGuid] FROM [ScopeMembership] WHERE [ScopeCollectionGuid] IN (SELECT [ScopeCollectionGuid] FROM dbo.fnGetTrusteeScopeCollections(@v1_TrusteeScope))))
)
Your help on this would be much appreciated.
Thanks,
Sam