It can be helpful to run reports of the membership of any filter as reports offer you the ability to add in additional data as well as export them to CSV for further processing.
Here is one way to do that:
SELECT DISTINCT [vCollection].[Name] AS [Filter Name] FROM [vRM_Computer_Item] AS [vri3_Computer] INNER JOIN CollectionMembership ON CollectionMembership.ResourceGuid = vri3_Computer.Guid INNER JOIN vCollection INNER JOIN Collection ON vCollection.Guid = Collection.Guid ON CollectionMembership.CollectionGuid = Collection.Guid ORDER BY [vCollection].[Name]
When you run this report you will see a list of all the filters in Altiris that have computers in them.
Make a drop down report that references this report
INNER JOIN CollectionMembership ON CollectionMembership.ResourceGuid = vri3_Computer.Guid INNER JOIN vCollection INNER JOIN Collection ON vCollection.Guid = Collection.Guid ON CollectionMembership.CollectionGuid = Collection.Guid
DECLARE @v1_filterName nvarchar(max) SET @v1_filterName = N'%filterName%' DECLARE @v2_TrusteeScope nvarchar(max) SET @v2_TrusteeScope = N'%TrusteeScope%' SELECT [vri3_Computer].[Guid] AS [_ItemGuid], [vri3_Computer].[Name], [dca4_AeX AC TCPIP].[IP Address], [dca5_Manufacturer].[Model], [vCollection].[Name] AS [Filter Name] FROM [vRM_Computer_Item] AS [vri3_Computer] INNER JOIN CollectionMembership ON CollectionMembership.ResourceGuid = vri3_Computer.Guid INNER JOIN vCollection INNER JOIN Collection ON vCollection.Guid = Collection.Guid ON CollectionMembership.CollectionGuid = Collection.Guid LEFT OUTER JOIN [Inv_AeX_AC_TCPIP] AS [dca4_AeX AC TCPIP] ON ([vri3_Computer].[Guid] = [dca4_AeX AC TCPIP].[_ResourceGuid]) LEFT OUTER JOIN [Inv_Manufacturer] AS [dca5_Manufacturer] ON ([vri3_Computer].[Guid] = [dca5_Manufacturer].[_ResourceGuid]) WHERE ( [vCollection].[Name] LIKE @v1_filterName) AND ( ([vri3_Computer].[Guid] IN (SELECT [ResourceGuid] FROM [ScopeMembership] WHERE [ScopeCollectionGuid] IN (SELECT [ScopeCollectionGuid] FROM dbo.fnGetTrusteeScopeCollections(@v2_TrusteeScope)))) )
NOTE: Running a report against them does not refresh a filter. So if you need up the minute accuracy refresh the filter first.
Let me know if this helps anyone
Thanks Igor. I just did that everyone who uses Altiris should have this report. We use it and permutations of it all the time.
For example we name all the adobe creative suite deployment filters with a particular prefix and the SQL of this report can be taylored to only show filters with that prefix making an awesome dashboard to show the status of each deployment.
Why you didn't attach a ready .xml file of this report? This will be easier to others just to import this .xml and have this report in their environment.