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 report to list all computers based on last logged on user name from collection

    SCCM report to list all computers based on last logged on user name from collection

    Eswar KonetiBy Eswar KonetiMarch 18, 1:44 pm1 Min Read SCCM 2007 7,958 Views
    Share
    Facebook Twitter LinkedIn Reddit

    If you want to trace the users on what computers are they logged in(please be noted that  this is based on the hardware inventory information and if multiple users logged into same computer will not report to site server until inventory information sent).

    Take a look at this post for more information about explaining last logged on user name http://smsug.ca/blogs/garth_jones/archive/2007/06/30/482.aspx

    select distinct a.Name0,a.UserName0 from v_GS_COMPUTER_SYSTEM a,v_FullCollectionMembership b where a.username0=@username and b.CollectionID=@COLLID

    Prompt for username:

    select distinct username0 from V_GS_Computer_system order by username0

    prompt for COLLID :

    select  CollectionID,Name from v_Collection

     

    if you need the last logged on user information from a given collection,you can try the below report :

    select distinct a.Name0,a.UserName0 from v_GS_COMPUTER_SYSTEM a,v_FullCollectionMembership b where  b.CollectionID=@COLLID

    prompt for COLLID :

    select CollectionID,Name from v_Collection

     

    Configmgr 2007 configmgr report last loggedon user name SCCM SCCM 2007 SCCM report to list all computers based on last logged on user name from collection SCCM Reports SQL
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    SCCM SQL Report – Compare Installed Apps on TWO Different Computers

    July 13, 10:35 am

    Optimize Your Intune Workflow with a Powerful Browser Extension

    March 22, 10:39 am

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    9 Comments

    1. Pingback: PC Hardware & Upgrades

    2. Лучшие гаджеты для Вас! on January 21, 2012 3:49 PM

      I like the helpful info you provide in your articles. I'll bookmark your blog and take a look at again right here frequently. I'm somewhat sure I will be told plenty of new stuff right right here! Good luck for the following!

      Reply
    3. webchol on December 16, 2011 12:37 PM

      very good information. It will work for my research. My work on webchol is now easy. 🙂

      Reply
    4. vertrieb on October 4, 2011 8:50 AM

      I will right away grasp your rss feed as I can't to find your e-mail subscription hyperlink or newsletter service. Do you have any? Kindly permit me recognize so that I may subscribe. Thanks.

      Reply
      • Eswar Koneti on October 15, 2011 12:37 PM

        you can use contact us tab

        Reply
    5. Arunkumar on June 12, 2011 3:49 PM

      i am getting the error " must declare the scalar variable "@username"

      Reply
      • Eswar Koneti on June 13, 2011 10:23 AM

        Did you create prompt for Username which is declared in report ?
        select distinct username0 from V_GS_Computer_system order by username0

        Reply
    6. Jack III on April 12, 2011 9:45 PM

      I am trying to add your query but it gives me an error. I am a little new to this. how do you add the info above to create the query?
      Any help would be greatly appreciated.

      thanks

      Reply
      • Eswar Koneti on April 13, 2011 12:26 PM

        what error do you get when you create report ? did you create prompt for the COLLID and username ?

        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.