Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / View Windows Update History with PowerShell (CMD)

April 29, 2025

View Windows Update History with PowerShell (CMD)

The Windows Update History GUI in the Settings app provides only basic information about installed updates (accessible via the URI shortcut ms-settings:windowsupdate-history) and is not convenient for searching. In this article, we’ll explore how to list installed updates in Windows from the command prompt or PowerShell console, find out when updates were last installed on a computer, and check whether a specific update is installed on a local or remote machine.

Windows Update History in the Settings app

Previously, the wmic command-line tool was commonly used to list installed updates in Windows. Open cmd.exe and run the following command to display a convenient table with the installed update history:

wmic qfe list brief /format:table

This table contains the update numbers (HotFixID), the installation dates (InstalledOn), and the name of the user who installed the update (InstalledBy).

wmic - list installed updates cmd

The NT AUTHORITY\SYSTEM user indicates that the update was installed automatically by the Windows Update service. If the Windows update hotfix was installed manually, the username will be listed here.

However, Microsoft has announced that support for WMI-based tools (including the wmic utility) will be disabled by default in new versions of Windows (starting with Windows 11 24H2). Therefore, it is recommended to use PowerShell to get information about installed updates.

A similar PowerShell command that displays a table of installed updates sorted by installation date:

Get-HotFix | Select-Object HotFixID, InstalledOn, InstalledBy, Description| sort InstalledOn -Desc

PowerShell - Get-HotFix

This cmdlet retrieves information from the Win32_QuickFixEngineering class, so the same update list can also be displayed as follows:

Get-CimInstance -ClassName Win32_QuickFixEngineering| select HotFixID, InstalledOn | sort InstalledOn -Descending

Get-CimInstance Win32_QuickFixEngineering - list installed Windows updated

Export the list of installed updates to a text file:

Get-HotFix |Format-Table -AutoSize > c:\temp\update_list.txt

Check whether a specific update is installed by (KB ID):

Get-HotFix -id 'KB5056578'

List updates on a remote computer:

Get-HotFix -ComputerName wks1234

Get-HotFix from remote computer

Check whether a specific update is installed on multiple computers (you can generate a list of computers in Active Directory using the Get-ADComputer cmdlet)

$computers = @('comp1', 'comp2', 'comp3')
$updateId = 'KB5056578'
foreach ($computer in $computers) {
$hotfix = Get-HotFix -ComputerName $computer -Id $updateId -ErrorAction SilentlyContinue
if ($hotfix) {
Write-Host "Update $updateId is installed on $computer."
} else {
Write-Host "Update $updateId is NOT installed on $computer."
}
}

Check if a specific update installed on AD domain computers

Get the date of the last successful update installation in Windows

Get-HotFix| sort InstalledOn -Desc|select InstalledOn -First 1

get date of last successfully installed update

There is a separate PowerShell module, PSWindowsUpdate, for managing updates. It includes the Get-WUHistory cmdlet (which lists the complete update installation history, including errors) and the Get-WULastResults cmdlet (which gets the date of the last successful update and scan on the update server)

PowerShell can also be used to uninstall Windows updates.
0 comment
0
Facebook Twitter Google + Pinterest
PowerShellQuestions and AnswersWindows 11Windows Server 2022
previous post
Cannot Install Network Adapter Drivers on Windows Server
next post
How to Cancel Windows Update Pending Restart Loop

Related Reading

How to Assign (Passthrough) a Physical GPU to...

June 11, 2024

Configuring RemoteApps Hosted on Windows 10/11 (without Windows...

January 25, 2025

Disable BitLocker Automatic Drive Encryption in Windows 11

October 16, 2024

Get Started with Docker on Windows (WSL2) without...

September 4, 2024

Enable Hyper-V on Windows 10/11 Pro and Home...

August 12, 2024

Disable and Completely Remove Widgets from Taskbar in...

September 26, 2024

Automatic Outlook User Profile Configuration with ZeroConfigExchange

May 21, 2024

Fix: Windows Update Tab (Button) is Missing from...

December 16, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Failed to Open the Group Policy Object on a Computer

    June 2, 2025
  • Remote Desktop Printing with RD Easy Print Redirection

    June 2, 2025
  • Disable the Lock Screen Widgets in Windows 11

    May 26, 2025
  • Configuring Windows Protected Print Mode (WPP)

    May 19, 2025
  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Assign (Passthrough) a Physical GPU to a Hyper-V Virtual Machine
  • Run PowerShell Scripts on a Schedule with Task Scheduler
  • Extend an Expired User Password in Active Directory
  • Check Windows 11 Hardware Readiness with PowerShell Script
  • How to Find Windows Version and Build Number Installed
  • Check the Software Installation/Removal History in Windows
  • How to Add or Remove Pinned Folders to Quick Access with PowerShell and GPO
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top