Query to find devices missing specific patches

sover steve 125 Reputation points
2024-11-25T12:04:24.7733333+00:00

What is the best way to construct a query that identifies devices missing specific patches? The intention is to use the results to create a device collection and then deploy updates to the collection.

Any suggestions or examples would be appreciated.

Microsoft Security | Intune | Configuration Manager | Updates
{count} votes

Answer accepted by question author
  1. AllenLiu-MSFT 49,436 Reputation points Microsoft External Staff
    2024-11-26T02:18:01.2166667+00:00

    Hi, @sover steve

    Thank you for posting in Microsoft Q&A forum.

    We can use CMPivot to query missing patches like below:

    SoftwareUpdate | where (Categories == 'Security Updates,Windows 10, version 1903 and later') | where (KBArticleIDs == 'KB4565627' ) | order by Device asc

    After running the query, we get the details of the Windows 10 devices that are missing security updates, and we can create device collection directly with the result.

    For your reference:

    https://www.anoopcnair.com/find-devices-missing-patches-using-configmgr-cmpivot-query/

    (Please Note: Since the website is not hosted by Microsoft, just for your reference.)


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


0 additional answers

Sort by: Most 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.