Client Management Suite

 View Only
Expand all | Collapse all

Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User

  • 1.  Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User

    Posted Sep 07, 2013 07:33 PM

    All,

    Good Day to all,  I'm having a little trouble with a report.  I'm looking for a report which will provide me a list of computers/ 30 days of inactivity / and the user who last logged in or Primary user of the inactive computer.  I know there is a way to email the results, if this is also available it would be a massive bonus.

    I've found this in the default Altiris reports but its missing the user portion to it.

    Can Someone help? Thanks

    DECLARE @v1_TrusteeScope nvarchar(max)
    SET @v1_TrusteeScope = N'%TrusteeScope%'
     
    SELECT DISTINCT    
        i.[Guid],
        i.[Name][Computer Name],
        MAX (r.[Collection Time]) [Last Collection Date] 
    FROM dbo.vComputer i   
    JOIN dbo.ScopeMembership sm
    ON sm.[ResourceGuid] = i.Guid
    AND sm.[ScopeCollectionGuid] IN (SELECT * FROM dbo.fnGetTrusteeScopeCollections (@v1_TrusteeScope)) 
    JOIN dbo.Inv_Inventory_Results r     
    ON r.[_ResourceGuid] = i.Guid   
                                    AND r.Agent = 'Inventory Agent'
    JOIN dbo.CollectionMembership cm   
    ON cm.ResourceGuid = i.Guid
                    JOIN dbo.vCollection it   
    ON it.Guid = cm.CollectionGuid   
    WHERE DATEDIFF(day,r.[Collection Time],GETDATE()) >= %Days%    
    AND LOWER (i.[Name]) LIKE LOWER ('%ComputerName%')    
    AND ('%Domain%' = '%' OR i.Domain = '%Domain%')
    AND (('%OS Platform%' = 'Windows' AND i.[System Type] LIKE 'Win%')
    OR ('%OS Platform%' = 'Unix/Linux' AND i.[System Type] LIKE 'Unix%')
    OR ('%OS Platform%' = 'Macintosh' AND i.[System Type] LIKE 'Mac%')
    OR ('%OS Platform%' = 'Other' AND i.[System Type] NOT LIKE 'Win%' 
    AND i.[System Type] NOT LIKE 'Unix%' 
    AND i.[System Type] NOT LIKE 'Mac%')
    OR ('%OS Platform%' = '%'))
    AND it.[Guid] =  '%Filter%'
    GROUP BY i.Guid,i.Name
    ORDER BY MAX (r.[Collection Time])
     


  • 2.  RE: Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User

    Posted Oct 03, 2013 08:58 AM

    Not sure if anyone can help with this?



  • 3.  RE: Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User

    Posted Oct 03, 2013 10:11 AM

    check the link for computer not reported n days

    https://www-secure.symantec.com/connect/forums/altiris-report-type

     



  • 4.  RE: Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User
    Best Answer

    Posted Oct 03, 2013 10:23 AM

    I don't have sql query but below is report location for last loging

     

    Go to the Report->All Report->Discovery and Inventory->Inventory->Cross-platform->
    User ->Local User Account Information
     

     



  • 5.  RE: Altiris 7.1 / Report on 30 day Inactive Computers w/Primary User and Last Logged User

    Posted Oct 03, 2013 10:52 AM

    Thanks AJ_01.  it should do the trick.