How to get the category of Windows Update logs?

Zhu Jeremy 1 Reputation point
2020-09-02T10:35:32.63+00:00

Hi,

In Window10, the Windows Update is divided into different categories, such as featrue updates, quality updates etc. The capture of Windows Update History page in system is below:
22221-updatehistory.png

I have already known that I can get the list of updates by this API: IUpdateSearcher::QueryHistory

But how to get the categories of these updates like they are in the red rectangle of the capture?

I tried get_Categories in IUpdateHistoryEntry2, but it can't match the same categories as Windows Update History page. Would someone give me a suggestion?

Thanks.

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,498 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Rita Han - MSFT 2,161 Reputation points
    2020-09-04T02:51:02.707+00:00

    Hello,

    Quality update is not a a specific category. It includes security updates, critical updates, servicing stack updates, and driver updates. Refer to "Types of updates".

    You can check "WSUS Classification GUIDs" for a specific category like CriticalUpdates, SecurityUpdates etc.

    For query a collection of update like Quality update you see in the Settings -> View update history you can use IUpdateSearcher::Search() by specifying CategoryID as criteria paremeter.

    Or you can get "category" information from the title of an update (IUpdateHistoryEntry::get_Title) like this:

    22604-20200904-1.png

    Thank you!

    0 comments No comments