Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Windows 11
  • Intune
  • GitHub
  • About
CCMEXEC.COM – Enterprise Mobility

SCCM Report – Clients that have not reported recently – Per Collection

Posted on May 29, 2011 by Jörgen Nilsson

There was a question in the Technet forum for a report with Last Hardware and Last Software inventory date per collection. Therefor I added the CollectionID as a condition for the built-in report “Clients that have not reported recently (in a specified number of days)” so that it can be run per collection.
This can be useful for providing reports for different sites, division or regions with client activity, so that they can check non-responsive clients in their area. Last_Inventory1 The report can be downloaded here:  https://ccmexec.com/wp-content/uploads/2011/05/Last_Inventory1.mof
Otherwise the query is available here: https://ccmexec.com/wp-content/uploads/2011/05/Last_Inventory1.TXT

If you import the query on your own don’t forget to create a prompt called @varCollection.

And the query for the CollectionID for the Prompted value, to be able to search for collectionID’s

begin
if (@__filterwildcard = '')
select distinct CollectionID, Name from v_Collection order by Name
else
select distinct CollectionID, Name from v_Collection
WHERE CollectionID like @__filterwildcard
order by Name
end

begin

if (@__filterwildcard = '')

select distinct CollectionID, Name from v_Collection order by Name

else

select distinct CollectionID, Name from v_Collection

WHERE CollectionID like @__filterwildcard

order by Name

end

/Jörgen

6 thoughts on “SCCM Report – Clients that have not reported recently – Per Collection”

  1. Crazed says:
    November 20, 2012 at 11:10 am

    This looks very helpful!!

    I am new to SCCM, can ou please advise how I can run this (vbs, SQL query?)?

    Thanks

    Reply
    1. Jörgen Nilsson says:
      November 20, 2012 at 12:12 pm

      HI,
      Download and import the files as reports in the SCCM console, then you can use them in the reporting interface.
      Regards,
      Jörgen

      Reply
  2. Crazed says:
    November 20, 2012 at 12:58 pm

    That’s great!

    Thank You – didn’t think to look for import options!

    thank You for the nice report.

    Reply
  3. Crazed says:
    November 20, 2012 at 1:00 pm

    I take it, it doesn’t search sub collections if I pick a root collection?

    Reply
  4. anonymus says:
    November 23, 2012 at 1:28 pm

    @NumOfDays is not declared ?

    Reply
  5. Rahul says:
    December 9, 2012 at 1:31 pm

    Hi.. i am getting an empty report…when running the Report.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Recent Posts

  • Windows 365 Link – a week and some
  • Prevent software installations disguised as drivers
  • Tip when troubleshooting unexpected reboots during Autopilot – event ID 2800
  • New settings in Intune Security Baseline Windows 11 24H2 -2504
  • Managing extensions in Visual Studio Code
©2025 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT