Close Menu
    Facebook X (Twitter) Instagram
    Sunday, October 12
    X (Twitter) LinkedIn Reddit RSS
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»Collections»SCCM collection based on Heartbeat Agent older than X days

    SCCM collection based on Heartbeat Agent older than X days

    Eswar KonetiBy Eswar KonetiNovember 29, 6:40 pm1 Min Read Collections 14,594 Views
    Share
    Facebook Twitter LinkedIn Reddit

    In my previous post,we saw how to create SCCM report to list clients with its heartbeat time stamp . In this post ,we are going to see ,how to create Create a collection to list clients that are not sending or not reported to SCCM since X days based on its heartbeat (DDR) agent time.

    To get clients that are not sending heartbeat DDR ,we will use sub selected query which means ,we first create collection that list all clients have heartbeat DDR < 23 days and use this in subselected query to list clients that are not in first created query. Entire query can be put into one collection which is given below.

    Create a collection ,choose new query based and paste the following query init.

    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.ResourceId not in (select ResourceID from SMS_R_System where AgentName in ("Heartbeat Discovery") and DATEDIFF(day,AgentTime,GetDate())<23)

    You can replace the number of days and agent name as you need in the above query.

    Collection configmgr collection Heartbeat heartbeat discovery older than X days Microsoft SCCM sccm collection SCCM collection based on hertbeat subselected query System center configuration Manager WQL Quiries
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Efficiently Identify Co-Managed Devices: Techniques and Tools

    January 17, 8:37 pm

    SCCM report list collections with no deployments

    December 05, 12:04 pm

    Tool for managing the import and export of SSRS report – ReportSync Tool

    October 27, 9:10 pm

    6 Comments

    1. Kristopher Roy on April 23, 2019 2:55 AM

      Is there a way to modify this so that you can find all active machines missing a client?

      Reply
      • Eswar Koneti on April 27, 2019 11:40 AM

        Hi,
        If the machine is active means it has client .What do you mean by active here ? does this refer to SCCM client status active ?

        Thanks,
        Eswar

        Reply
    2. Jon on July 16, 2016 1:39 AM

      This query takes all Agent Times into consideration, not just Heartbeat Discovery, how to just filter by Heartbeat Discovery Agent Time?

      Reply
      • Eswar Koneti on October 21, 2016 12:11 PM

        i just tried the query ,it takes only the heartbeat discovery time. can you post the results what you see that tell all agent time?

        Thanks,
        Eswar

        Reply
    3. peter on May 28, 2013 2:24 PM

      hi, what should i put in agent name?
      i keep getting invalid query error.

      thanxz,

      peter

      Reply
      • Eswar Koneti on June 2, 2013 12:13 PM

        did you try replacing the quotes"" in heartbeat discovery used in the query.they converted to fancy quotes by the blog.

        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.