Skip to content
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks

Written By Anoop C Nair
Last Updated July 31, 2024
Posted In SCCM
SHARE

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks. This is a long-pending post. I’ve created a custom report to check the status of the SCCM 2007, ConfigMgr 2012, and CB predefined maintenance tasks. I’ve uploaded the RDL file to GitHub and imported it to your SSRS.  

Download the RDL file from GitHub. Run the report and monitor the status of your maintenance tasks on SCCM 2012 and 2007 site servers (weekly or daily).

Latest Post – Check SCCM Predefined Maintenance Tasks Status (anoopcnair.com) & SCCM Secondary Site Maintenance Tasks | List | ConfigMgr | SQL Query HTMD Blog

Completion Status ZERO (0) means the task has finished successfully. This data is held in a table called SQLTaskStatus. We can also add a column to find a task’s time to run.

Patch My PC

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks?

Checking the status of maintenance tasks is always important and should be part of  Weekly health checks. This post continues my old post on how to find out the status of Predefined Maintenance Tasks.

I couldn’t find the view related to the SQLTaskStatus table, so I created the custom report with the above table rather than the view.

Two potential issues:-

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks - Fig.1
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks – Fig.1

1. Go to the Manage option of the report (from the SSRS web report). Click on Manage –> Data Sources –> Click on A Shared Data Source and browse to connect to /ConfigMgr_SiteCode/{5C6358F2-4BB6-4a1b-A16E-8D96795D8602} and APPLY. Run the report. It should work.

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks - Fig.2
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks – Fig.2
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks - Fig.3
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks – Fig.3

2. Another problem could be with permission. You probably don’t have access to tables. Can you try running the following query from SQL Management Studio?

Select * from SQLTaskStatus.

SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks - Fig.4
SCCM Custom Report to Check the Status of Predefined Site Maintenance Tasks – Fig.4

We are on WhatsApp now. To get the latest step-by-step guides, news, and updates, Join our Channel. Click here. HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP from 2015 onwards for consecutive 10 years! He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His main focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career, etc…

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 20 comments

  1. I tried to import this rdl file in to our SSRS but getting below error:
    “The report definition is not valid. Details: The report definition has an invalid target namespace ‘http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition’ which cannot be upgraded. (rsInvalidReportDefinition) Get Online Help”

  2. I’m getting the following error:

    The SELECT permission was denied on the object ‘SQLTaskStatus’, database ‘CM_DI1’, schema ‘dbo’.
    —————————-
    Query execution failed for dataset ‘DataSet1’. (rsErrorExecutingCommand)
    —————————-
    An error has occurred during report processing. (rsProcessingAborted)

    1. StaffOne problem could be :-
      Go to Manage option of the report. Click on Manage –> Data Sources –> Click on A Shared Data Source and browse to connect to /ConfigMgr_SiteCode/{5C6358F2-4BB6-4a1b-A16E-8D96795D8602} and APPLY. Run the report. It may work.

      Another problem could be with permission. Probably, you don’t have access on tables. Can you try running the following query from SQL management studio.
      select * from SQLTaskStatus

      1. After uploading the report the first thing I did was configure that data source, so i’m guessing its a permission issue too. Our DBA locks us down pretty good 😉 Bummer. Looks like you built a handy report. Thanks for sharing.

  3. Hi Anoop,

    Can you help me !!!

    How to get, Patch installation compliance report including date and time through SCCM custom reporting.

  4. Hello Anoop. This is a very helpful post. I was wondering if you knew what the other “CompletionStatus” codes are? I know 0 means it completed, but what does 1 mean?

    1. StaffHello Seth – Even I’m not sure about this now. This is very old report published many years before. I think 1 means failed or running. Can you please test it and confirm back?

  5. Hello Anoop C Nair,

    I don’t find the RDL file in your path.
    Is it always available?

    Thanks you

  6. Hello Annop,

    Thank you for your reply.
    I know it is available in the console but I want just to schedule this report.

    Have a nice day

Join the discussion

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

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read