Skip to content
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr

Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr

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

today, I will explain how to execute CMPivot queries from the Intune admin center. Microsoft Intune simplifies running CMPivot queries on tenant-attached devices and evaluating their status in your environment.

Let’s check a new tenant-attached CMPivot feature made available with the release of ConfigMgr 2006. Now, you can check the options to Run CMPivot Queries from Intune Portal (a.k.a. Microsoft Endpoint Manager admin center).

When using Configuration Manager, the CMPivot query enables real-time data retrieval from all currently connected devices in the selected collection. Microsoft has enhanced the CMPivot feature in Intune, allowing you to execute CMPivot queries on the tenant-attached devices.

Let’s revise the details about CMPivot from the ConfigMgr console. At the bottom of this post, we will see more information about running CMPivot Queries from the Intune portal.

Patch My PC
Index
Prerequisites
What is CMPivot?
Launch CMPivot from the Intune Portal
Process and Troubleshooting
Results
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Table 1

Prerequisites

Let’s quickly check the prerequisite to enable CMPivot access from the Intune portal.

To Run CMPivot Queries from Intune Portal, you need to have the following prerequisites completed.

NOTE! The permissions for the tenant are updated. You don’t need to give permissions to Configuration Manager Microservice https://docs.microsoft.com/en-us/mem/configmgr/tenant-attach/client-details#permissions

  • All of the prerequisites for the Tenant are attached: SCCM client details.
  • The minimum supported version of ConfigMgr is 2006.
  • All sites (child primary and secondary servers) in the hierarchy must meet the minimum ConfigMgr version 2006 requirement.
  • ConfigMgr clients must be running the latest version of the client. Check whether your client version is the latest one mentioned in the GA of ConfigMgr 2006.
  • You should have appropriate access to run the CMPivot from SCCM and Intune.
    • The Read permission for the device’s Collection.
    • The Run CMPivot permission on the Collection.
    • The Admin User role for the Configuration Manager Microservice application in Azure AD.
    • You can add the role in Azure AD from Enterprise applications > Configuration Manager Microservice > Users and groups > Add user. Groups are supported if you have Azure AD premium.

Related Post Fix ConfigMgr Tenant Attach Error 401 403 | Missing Config| SCCM

Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.1
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.1

What is CMPivot?

The CMPivot is a new SCCM in-console utility that now provides access to your environment’s real-time state of devices. You can run CMPivot as a standalone tool as well.

The post includes details on CMPivot architecture and communication. SCCM CMPivot Architecture Fast Channel Making | ConfigMgr.

Launch CMPivot from the Intune Portal

I assume you all know how to launch the CMPivot from the ConfigMgr console. This section teaches how to run the CMPivot query from the Intune portal (MEM Admin Center).

Once you have completed all the prerequisites of the Tenant attachment, you will be able to see all the ConfigMgr-managed devices in the Intune portal. To run the CMPivot query, follow the steps mentioned below.

  • Open Admin Center – Intune Portal – https://endpoint.microsoft.com/
  • Select the Devices node, then click on All Devices.
  • Click on Windows.
  • Select the device that is synced from ConfigMgr via tenant attachment.
    • Use the Search option to find the device.
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.2
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.2

Click on the devices with the following option – Managed By ConfigMgr.

Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.3
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.3

Select CMPivot (preview) from the Intune portal to run CMPivot.

  • Use the Search option to find specific patching details.
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.4
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.4

Copy the CMPivot query from the previous posts. You can use the same queries from the Intune portal as well. I have selected the CMPivot Query Patches Installed in the Last 220 days.

  • QuickFixEngineering | where InstalledOn >= ago(220d)
  • Copy the above query and paste it into the small window shown in the screenshot.
  • Click on the Run button to execute the CMPivot query against that particular device that you selected.
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.5
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.5

Process and Troubleshooting

You can start troubleshooting the CMPivot query initiated from the Intune portal using the following log files CMGatewayNotificationWorker.log & AdminService.log. These logs can be found at the SCCM logs location on the site server.

More Details: You can find more details about the background process flow behind the scenes when someone initiates a CMPivot query from the Intune portal (admin centre).

Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.6
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.6

Results

The results of the CMPivot query can be checked in the MEM Admin center (Intune) portal itself. The following screen capture provides more details.

Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr - Fig.7
Run CMPivot Queries from Intune Portal | SCCM | ConfigMgr – Fig.7

Resources

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

Author

Anoop C Nair is Microsoft MVP! He is a Device Management Admin with more than 20 years of experience (calculation done in 2021) in IT. He is a Blogger, Speaker, and Local User Group HTMD Community leader. His primary focus is Device Management technologies like SCCM 2012, Current Branch, and Intune. He writes about ConfigMgr, Windows 11, Windows 10, Azure AD, Microsoft Intune, Windows 365, AVD, 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

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