Create report on SCCM columns

Kevin Hawkins 141 Reputation points
2022-07-13T14:08:18.777+00:00

Hi all,

Would anyone know what fields I would need to query in the SCCM DB to get a report on these 2 fields in the console "Last Activity" & "Currently Logged on User"?

220367-2022-07-11-16-42-45.png

We are trying to link them to our Service Now environment, so need to find out what is being called in the DB.

Thanks

Microsoft Security Intune Configuration Manager Updates
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ESWARARAJU KONETI 2,206 Reputation points MVP Volunteer Moderator
    2022-07-13T16:04:48+00:00

    look at the SQL view "v_CombinedDeviceResources". This will have most of the client details that you see it in the console.

    Thanks,
    Eswar
    www.eskonr.com

    1 person found this answer helpful.
    0 comments No comments

  2. Rita Hu -MSFT 9,661 Reputation points
    2022-07-18T07:16:01.383+00:00

    @Kevin Hawkins
    I found the following in my lab and I want to share with you to confirm whether it is helpful.
    New query in my lab to request the Currently Logged on User and Last Activity:
    221754-newcase1.png

    221773-newcase2.png

    Query Language:

    select SMS_R_System.Name, SMS_R_System.LastLogonTimestamp, SMS_R_System.LastLogonUserName, SMS_R_System.ClientVersion from  SMS_R_System  
    

    Also we could request the status in DB by SSMS:
    221736-newcase3.png

    Query Language:

    select Name0,Last_Logon_Timestamp0,User_Name0  from dbo.vSMS_R_System   
    

    I'm not an expert in SQL. The above finding are just for your reference. Hope the above will be helpful. Please let me know if there are any questions or updates of the above.

    Best regards,
    Rita


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.