Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»SCCM 2007»SCCM Configmgr Report find Computers for the list of selected users

    SCCM Configmgr Report find Computers for the list of selected users

    Eswar KonetiBy Eswar KonetiAugust 31, 2:09 pm1 Min Read SCCM 2007 7,946 Views
    Share
    Facebook Twitter LinkedIn Reddit

    You have Username but unsure what is their computer name where they logged into to track it(this all happens if and only if sccm client is healthy else you see old information).

    This report gives you all the machines name with your supplied user names if you have bulk users to know all .

    Create report with below SQL code and Run Smile

    Other SCCM reports based on last logged on user names http://eskonr.com/2011/03/sccm-report-for-computers-with-last-logged-on-user-from-collection/

    http://eskonr.com/2011/03/sccm-report-to-list-all-computers-based-on-last-logged-on-user-name-from-collection/

    SELECT  GS.Name0,
    GS.UserName0,
    WS.LastHWScan,
    GS.Domain0,
    OS.Caption0,
    SYS.SystemRole0
    FROM
    v_GS_COMPUTER_SYSTEM GS,
    v_GS_OPERATING_SYSTEM OS,
    v_GS_SYSTEM SYS,
    v_GS_WORKSTATION_STATUS WS
    WHERE
    GS.ResourceID = SYS.ResourceID
    AND WS.ResourceID = GS.ResourceID
    AND OS.ResourceID = GS.ResourceID
    AND SYS.SystemRole0<>'Server'
    AND Datediff(dd,WS.LastHWScan,getdate()) > -1 and
    GS.username0 in ('eskonr\eswar','eskonr\koneti','eskonr\test','eskonr\test1')

    order by UserName0

    You can add multiple users by separating comma(,) from above In command.

    Computers with last logged on username find Computers with Last Logged on user last logged on user name report sccm report SQL code
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Monitoring Endpoint Security Applications with SCCM ConfigMgr SQL

    October 11, 8:48 pm

    SCCM report list collections with no deployments

    December 05, 12:04 pm

    1 Comment

    1. That Guy on September 14, 2018 2:31 AM

      This is great

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2025 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.