Skip to content
WQL Query SMS Units Changes after SCCM CB 1710 Upgrade

WQL Query SMS Units Changes after SCCM CB 1710 Upgrade

Written By Anoop C Nair
Last Updated August 8, 2024
Posted In SCCM
SHARE

Let us learn about the WQL Query SMS Units Changes after the SCCM CB 1710 Upgrade. One of my colleagues reported that their custom queries were not working as expected after the SCCM 1710 upgrade.

They have a production query to clean up devices with less than 2048 MB disk space, but it stopped working as expected after the SCCM CB 1710 upgrade. This pose will reveal more details of the WQL Query and “SMS Units” Changes after the SCCM CB 1710 Upgrade.

The changes also affect SQL views, but I don’t see any direct impact on SCCM clients and infrastructure. I agree that these changes are more logical, as the Hard Disks are coming in GBs and TBs in size.

I didn’t notice this change in my previous video post, “Differences Between SCCM ConfigMgr CB 1710 and 170. I didn’t notice this change6“.

Patch My PC

What is a WQL Query? – WQL Query SMS Units Changes after SCCM CB 1710 Upgrade

You can use the WQL query to access WMI data from the system. WMI was introduced with Windows 2000. In layman’s language, WMI is the database that stores data about Windows resources like software and hardware. SCCM collection queries are based on WQL.

What is SMS_Units?

SMS_Units is the string that informs the Inventory Agent to perform a conversion between data provided by WMI into a form SMS can handle. The following example is valid until SCCM CB 1710 is released. Once you upgrade to 1710 then, these Megabytes will change to Gigabytes.

Example: SMS can’t handle 64-bit integers, so in the case of disk size, we use the qualifier: SMS_Units(“Megabytes“) and the agent will translate the raw # of bytes returned by WBEM into the appropriate representation in megabytes.

What is Changed in SCCM CB 1710?

As per the Microsoft SCCM product team’s updated documentation, the SCCM CB 1710 release has a revision with Inventory default units (SMS_units).

“As devices now include hard drives with sizes in the gigabyte (GB), terabyte (TB) and larger scales, this release changes the default unit (SMS_Units) used in many views from megabytes (MB) to GB. For example, the v_gs_LogicalDisk.FreeSpace value now reports GB units.”

SMS_Units(“Gigabytes“) are used in different views, and we should take care of those views to notice the differences. Below is one of the sample WQL query samples. This WQL query example includes new changes in SMS_Units.

select * from SMS_R_System inner join SMS_G_System_DISK on SMS_G_System_DISK.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_LOGICAL_DISK on SMS_G_System_LOGICAL_DISK.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_PC_BIOS on SMS_G_System_PC_BIOS.ResourceID = SMS_R_System.ResourceId inner join SMS_G_System_PROCESS on SMS_G_System_PROCESS.ResourceId = SMS_R_System.ResourceId where SMS_G_System_LOGICAL_DISK.Size = 256 and SMS_G_System_PROCESS.PeakVirtualSize = 10 and SMS_G_System_PC_BIOS.BIOSVersion > “1.0” and SMS_G_System_LOGICAL_DISK.FreeSpace < 25

Values Changed in WQL Query after SCCM CB 1710 Upgrade

Let’s discuss the Values Changed in the WQL Query after the SCCM CB 1710 Upgrade. The screenshot below helps you show more details.

Values Changed in WQL Query after SCCM CB 1710 Upgrade
Example WQL Query Crieria/s which I checked
Object Type ==> System Resource
Criterion Type ==> Simple Value
Where ==> Logical Disk – Size (GB)
Where ==> Logical Disk – Free Space (GB)
Where ==> Process – Peak Virtual Size (GB)
WQL Query SMS Units Changes after SCCM CB 1710 Upgrade – Table 1
WQL Query SMS Units Changes after SCCM CB 1710 Upgrade - Fig.1
WQL Query SMS Units Changes after SCCM CB 1710 Upgrade – Fig.1

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 · 6 comments

  1. I noticed this recently after 1710 upgrade as we had created a report which pulls drive size and available size information which was earlier in MB and now changed to GB. But there is one problem, for few drives it is showing on GB and for few it is showing in MB. For ex- if server have 5 drives, 1 is showin size in MB and other 4 in GB. What can be the issue? Can you help?

    1. I have the same problem, within view v_GS_LOGICAL_DISK, I can see some disks still using MB unit, most of the others disks are now in GB. SCCM is showing correctly everything in GB so I guess there should have somewhere the unit used for the resourceid. Anybody has an idea ?

      1. StaffYes, Some disks are still using MB as all your clients are not upgraded to SCCM CB 1710 version (my assumption). I assume, once all your SCCM clients are upgraded to the latest version of CB then, you would be able to see only GB.
        Does that make sense?

      2. My mistake, even SCCM client is not displaying correctly the disks for which the capacity is still saved in MB in the database. I don’t think it is something about the client deployed because for the server in example all the disks are correctly in GB and only one is still in MB. It’s probably an issue with the refresh of the value of that disk.

  2. I am on build 1806 and my still show MB in the resource explorer. However the values are a mix of GB and MB. All my agents are the 1806 build, and Hardware inventory has be ran across the board. What do you have to do for these values to be consistent.

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