Skip to content
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error

How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error

Written By Anoop C Nair
Last Updated September 6, 2024
Posted In SCCM
SHARE

Let’s find out the ConfigMgr CMPivot Query to Collect Windows Update Logs from the SCCM Client Remotely. The ConfigMgr CMPivot is based on a fast-channel notification architecture.

The WindowsUpdate.log is part of event logs called WindowsUpdateClient with the latest versions of Windows.

Many organizations use SCCM (WSUS) and Intune (WUfB) to patch Windows 10 devices. Collecting Windows update logs (WindowsUpdate.log) from the SCCM client is important for troubleshooting Windows updates or patching issues.

ConfigMgr CMPivot query tool allows you to assess the state of devices quickly. When you run a query against a device collection, the CMPivot tool will run a query in real-time on all currently connected (online) devices in the selected collection.

Patch My PC

WindowsUpdateClient Event Logs

You don’t have WindowsUpdate.log available out of the box with the latest version of Windows. Instead, you need to use the following PowerShell command to create WindowsUpdate.log. The Get-WindowsUpdateLog cmdlet merges and converts Windows Update .etl files into a single readable WindowsUpdate.log file.

Get-WindowsUpdateLog
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.1
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.1

How to Collect Windows Update Logs from SCCM Client

You can use the CMPivot query to collect Windows update logs from Windows devices. This is the easiest way to get the error details from Windows Update Client event logs.

  • Navigate to the device collection against which you want to run the CMPivot query.
  • Select any device collection.
  • Right-click on Device Collection.
  • Select Start CMPivot.

NOTE: I don’t recommend using the All System collection in a production environment with more than many Windows devices. Instead, use the collection with fewer devices to try out the query.

How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.2
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.2

ConfigMgr CMPivot Query for Event Logs

Let’s see how to find the ConfigMgr CMPivot query for event logs. It would be best to remember the log information you query through CMPivot.

The following CMPivot query gives you the details of Microsoft-Windows-WindowsUpdateClient/Operational event logs for the last hour.

WinEvent('Microsoft-Windows-WindowsUpdateClient/Operational', 1h)
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.3
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.3

The following CMPivot query gives you the details of Microsoft-Windows-WindowsUpdateClient/Operational event logs for the last day.

WinEvent('Microsoft-Windows-WindowsUpdateClient/Operational', 1d)
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.4
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.4

The following CMPivot query gives you the error and count of devices with a summary dashboard by querying Microsoft-Windows-WindowsUpdateClient/ Operational event logs for the last day.

WinEvent('Microsoft-Windows-WindowsUpdateClient/Operational', 1d)
| where LevelDisplayName =='Error'
| summarize count() by Device
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.5
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.5

Export CMPivot Query Results

Let’s find out how to export CMPivot query results into a CSV file.

  • Click on the Export button.
  • From the drop-down menu, select Result to file.
DeviceLevelDisplayNameDateTimeMessageProviderNameID
Prod-Win20Information07-02-2021 03:41Windows Update successfully found 0 updates.Microsoft-Windows-WindowsUpdateClient26
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Table 1
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error - Fig.6
How to Collect Windows Update Logs from SCCM Client Remotely ConfigMgr CMPivot Query for Event Logs Error – Fig.6

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 has been Microsoft MVP for 10 consecutive years from 2015 onwards. 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 primary 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

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