Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • 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
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • 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
  • PowerShell
  • Linux

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

April 29, 2025 PowerShellQuestions and AnswersWindows 11Windows Server 2022

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
previous post
Cannot Install Network Adapter Drivers on Windows Server
next post
How to Cancel Windows Update Pending Restart Loop

Related Reading

WMIC Command Not Found on Windows

May 20, 2025

Configuring Windows Protected Print Mode (WPP)

May 19, 2025

Unable to Map Drive: An extended error has...

May 13, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

Configure NTP Time Source for Active Directory Domain

May 6, 2025

Leave a Comment Cancel Reply

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

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • 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
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 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