how to fetch windows quality update distribution report via api ,

Singh, Kajal 0 Reputation points
2026-05-25T20:12:55.0966667+00:00

how to fetch windows quality update distribution report via api .

Microsoft Security | Intune | Reporting

1 answer

Sort by: Oldest
  1. AI answer

    2026-05-25T20:13:13.3066667+00:00

    Windows quality update distribution and alert data can be retrieved via Microsoft Graph using the Windows updates / Windows Autopatch and Intune reporting APIs.

    For Windows Autopatch quality update reporting via API, use Microsoft Graph in one of these ways:

    1. Use Graph Explorer interactively
      1. Go to Graph Explorer: https://developer.microsoft.com/graph/graph-explorer
      2. Sign in with a Microsoft Entra account that has the required permissions.
      3. In Modify permissions, grant and consent to WindowsUpdates.ReadWrite.All (or the minimum read permission required for your scenario).
      4. Use the Windows updates admin endpoints (under admin/windows/updates) to query deployments and device update state for Windows quality updates managed by Windows Autopatch. This gives per‑deployment reporting, monitoring, and troubleshooting data for quality updates.
    2. Use PowerShell for Windows quality update alert/summary reporting The Microsoft Graph Beta PowerShell module exposes an action to get Windows quality update alert summary reports:
         Import-Module Microsoft.Graph.Beta.Reports
         
         $body = @{ 
             # Optional filters, grouping, etc.
             # Filter   = "<OData filter>"
             # GroupBy  = @("<column>")
             # OrderBy  = @("<column>")
             # Select   = @("<column1>", "<column2>")
             # Top      = 100
         }
         
         Get-MgBetaDeviceManagementReportWindowsQualityUpdateAlertSummaryReport -BodyParameter $body
      
      The BODYPARAMETER object supports:
      • Filter – to filter the dataset
      • GroupBy – to group results
      • OrderBy – to sort
      • Select – to choose columns
      • Top, Skip – for paging
      • Search, SessionId, Name – for additional control
      This returns a report summarizing Windows quality update alerts, which can be used to understand distribution and issues across devices.
    3. Use Windows Autopatch / WUfB reports for distribution monitoring Windows Autopatch integrates with Windows Update for Business reports to provide per‑deployment reporting, monitoring, and troubleshooting for Windows quality updates. Distribution status (for example, Not Ready devices) can be monitored there, and devices can be exported from the portal. Programmatic access is via the same Windows updates Graph APIs used above.

    High‑level steps to build an automated distribution report pipeline:

    1. Ensure devices meet Windows Autopatch prerequisites and are managed by Autopatch.
    2. Use Microsoft Graph (REST or PowerShell) with the Windows updates and Intune reports endpoints:
      • Query deployments and device states for Windows quality updates (Autopatch / WUfB reports).
      • Optionally call Get-MgBetaDeviceManagementReportWindowsQualityUpdateAlertSummaryReport on a schedule and store results in a data store (Log Analytics, SQL, etc.).
    3. Build dashboards or scheduled exports from the collected data.

    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.