Identify if Cumulative update is installed - Windows Server 2016 Standard

אור ביטון 11 Reputation points
2022-08-31T20:14:44.35+00:00

Hi,

I've got a Microsoft Windows Server 2016 Standard machine

I want to check if the machine got the latest Cumulative Update.

To this date, the Cumulative Update is: KB5016622

What I've checked:

On SystemInfo > HotFix > the KB5016622 is shown

On Updates History > the KB5016622 is shown with the status "Successfully Installed"

the OS Build is also ok - 14393.5291

But when I'm checking the keys under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" I've found keys with "CurrentState" 64 (Staged) - They won't change, even after several restarts.

I want to find a way to query without a doubt that the cumulative update was installed successfully.

(Registry, WMI)

Results from the Registry are attached (Registry Key Name, CurrentState Value)
236667-registryresults.txt

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. JimmySalian-2011 42,511 Reputation points
    2022-08-31T20:19:30.703+00:00

    Hi,

    Can you run this command on the PowerShell Console

    (Get-HotFix | Sort-Object -Property InstalledOn)[-1]  
    

    or

    Try this command:

    get-hotfix | Sort-Object -Descending -Property InstalledOn -ErrorAction SilentlyContinue  
    

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

  2. JimmySalian-2011 42,511 Reputation points
    2022-08-31T20:54:03.803+00:00

    Hi,

    Did you look for the actual KB in the registry? Try this command to pull out the stats using WMI if the Get-Hotfix does not pull the stats.

    wmic qfe list full /format:table

    or specific update

    wmic qfe list full /format:table | findstr /i "5016622"

    Export the registry and upload to onedrive so I can have a look.

    ==

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  3. Limitless Technology 39,926 Reputation points
    2022-09-02T07:41:17.893+00:00

    Hello

    Thank you for your question and reaching out.

    Please search Cumulative Update from control panel GUI.
    In Control Panel, navigate to Programs > Programs and Features ->Click on 'View Installed Updates' to see the full list of updates

    If you are able to find it then from it then there is no need to check or dependent on Registry.

    ----------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

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