Skip to content
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

SUG Software Update Group Patch Deployments SCCM Report using SQL Query

Written By Anoop C Nair
Last Updated March 31, 2022
Posted In SCCM
SHARE

Software Update Group Patch Deployments SCCM Report options are discussed in the post. Let’s find the SCM Report based on Software Update Group (a.k.a SUG) Patch Deployments using SQL Query.

Patch Deployments of a Software Update Group report using SQL query. You can also export the list of Software Update Groups from the SCCM console instead of using SQL Server Management Studio.

You can easily track the patches deployed using Software Update Group (aka SUG) with the SCCM report that I shared below. I have also shared another way to export the Software Update Groups details from the SCCM admin console.

The Software Updates Patching is one of the key features of SCCM, and this feature is used for Client and Server operating systems such as Windows 11, Windows 10, Server 2022, etc. How-To Guide to Create & Deploy New Software Update Patch Package using SCCM gives end-to-end details of SCCM patch deployment using Software Update Groups.

Patch My PC

You can use default SCCM patching reports once you install Reporting Services Point and have SSRS reporting working. The following are the 5 default report sections are available as part of SCCM default SSRS.

Software Updates – A Compliance
Software Updates – B Deployment Management
Software Updates – C Deployment States
Software Updates – D Scan
Software Updates – E Troubleshooting
SCCM Report based on Software Update Group
SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

What is SCCM SUG (Software Update Group)

Software Update Group (SUG) is a logic container in Configuration Manager Software Updates workflow to group several Software Updates (aka MS patches) together. Once the Software Update Group is created, you can use the same for better management of the patching process.

You can deploy SUG to SCCM Device Collection(s) and track the deployment progress for that particular SUG. In this post, you will see how to use SUG to filter the Software Updates compliance reporting better.

Read More -> How To Create Deploy New Software Update Patch Package Using SCCM.

SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

Export Software Update Group (SUG) Details from SCCM Console

You can export Software Update Group Details from SCCM Console. This is a very quick and effective method to get an overview of SCCM SUG. First, you need to select all the columns from the console Software Update Groups node to get the full details during the export process.

You can use the details received from the Software Update Groups node to troubleshoot SCCM patching issues and get the status of SUG deployments, such as Overall Compliance status of SUG, Downloaded or not, Deployed or not, etc.

  • Navigate to \Software Library\Overview\Software Updates\Software Update Groups.
  • Right-Click on any of the column tab and select all the available columns as shown in the screenshot below.
SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

You need to remember that CTRL + A to select all the SUG from the list doesn’t work in the ConfigMgr Admin console selection scenario. You need to choose one SUG and use the up or down arrow to expand the selection of SUGs.

  • Select one Software Update Group (SUG) and use the SHIFT + UP or DOWN arrow from the keyboard to select all the other Software Update Groups from the list.
  • Select All the SUGs that you want to backup or export.
  • Press CTRL + C buttons on the keyboard to copy all the SCCM SUGs from the admin console to the clipboard.
Export Software Update Group (SUG) Details from SCCM Console
Export Software Update Group (SUG) Details from SCCM Console

Now, you can open an Excel or Notepad and paste the details of the SCCM Software Update Group from the Clipboard.

SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

SQL Query to Get All Software Update Group SUG Patch Deployments

You can get SCCM Report based on All Software Update Group SUG Patch Deployments using the following SQL query. You have to launch SSMS and paste the following query to get a list of all Software Update Groups-based deployments.

NOTE! – I don’t recommend running this query in a production environment; instead, this should be used only for learning scenarios. This should use only in test labs to get a view of all the Software Update Groups.

For the production scenario, I recommend running the query shared in the below section of the post to get the report on the specific Software Update Group (SUG).

  • Open the SQL Server Management Studio (aka SSMS).
  • Connect your Database Engine.
  • Right Click on your database CM_XXX and click on ‘New Query’
  • Copy the following SQL query to find the report All Software Update Group SUG Patch Deployments.
  • Click on the Execute button.
         select
          a.AssignmentName as 'Deployment Name',
          ugi.Title as 'SUG Name',
          a.CollectionName as 'Collection Name',
          a.CollectionID as 'Collection ID',
          a.StartTime as Available,
          a.EnforcementDeadline as Deadline,
          a.Assignment_UniqueID as DeploymentID,
          a.LastModificationTime as LastModificationTime
          from v_CIAssignmentToGroup atg
          join v_AuthListInfo ugi on ugi.CI_ID=atg.AssignedUpdateGroup
          join v_CIAssignment a on a.AssignmentID=atg.AssignmentID
                    order by a.AssignmentName

You need to click on Execute button to get the results (SUG Software Update Group Patch Deployments SCCM Report).

SCCM Report based on All Software Update Group SUG Patch Deployments SQL Query to Get All Software Update Group SUG Patch Deployments
SQL Query to Get All Software Update Group SUG Patch Deployments

The results of the above SQL Query are based on the SUG Software Update Group Patch Deployments for the lab environment, as shown below.

SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

SCCM Report based on Software Update Group SUG Patch Deployments using SQL Query

Let’s check the SQL query to find the SCCM Report based on Software Update Group SUG Patch Deployments. You have to launch SSMS and paste the following SQL query to get a report on the specific SUG based patch deployments.

  • Open the SQL Server Management Studio (aka SSMS).
  • Connect your Database Engine.
  • Right Click on your database CM_XXX and click on ‘New Query’
  • Copy the following SQL query to find the report of a specific Software Update Group (aks SUG) Patch Deployments.
  • Click on the Execute button.
 select
          a.AssignmentName as 'Deployment Name',
		  ugi.Title as 'SUG Name',
          a.CollectionName as 'Collection Name',
          a.CollectionID as 'Collection ID',
          a.StartTime as Available,
          a.EnforcementDeadline as Deadline,
          a.Assignment_UniqueID as DeploymentID,
          a.LastModificationTime as LastModificationTime
          from v_CIAssignmentToGroup atg
          join v_AuthListInfo ugi on ugi.CI_ID=atg.AssignedUpdateGroup
          join v_CIAssignment a on a.AssignmentID=atg.AssignmentID
          where ugi.Title = 'Windows 11 Patches for Oct 2021'
          order by a.AssignmentName

You can check the results of the above SQL query to get the SUG Software Update Group patch deployments. This helps to get the details of the deployments done based on one particular SUG.

SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments SCCM Report using SQL Query

This type of SUG-focused report or SQL query helps troubleshoot patching issues during the monthly patch deployment process.

Deployment NameSUG NameCollection NameCollection IDAvailableDeadlineDeploymentIDLastModificationTime
Windows 11 OCT 2021 PatchesWindows 11 Patches for Oct 2021All Windows 11 DevicesMEM0002103:00.052:00.0{1F98AC81-FC08-479D-8D46-2267A0183EA0}12:13.0
SUG Software Update Group Patch Deployments SCCM Report using SQL Query
SUG Software Update Group Patch Deployments Report
SUG Software Update Group Patch Deployments Report

Author

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

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