~/find out if an update, hotfix or kb is installed with powershell

Check one server or many for a specific KB with Get-HotFix, see the latest installed updates, and find out which PowerShell version you're running.

Updated November 2026. Get-HotFix still does the job. I’ve added checking several servers at once, its limitations, and a short tip from a separate old post on finding the PowerShell version.

One machine

Get-HotFix -Id KB5048667

If it’s installed, you’ll see the KB, its description and install date. If not, you’ll get an error saying it can’t be found.

Several servers at once

$servers = "SRV01", "SRV02", "SRV03"
foreach ($s in $servers) {
    [pscustomobject]@{
        Server    = $s
        Installed = [bool](Get-HotFix -Id KB5048667 -ComputerName $s -ErrorAction SilentlyContinue)
    }
}

Latest updates installed

Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 10

Limitations

Get-HotFix reads Win32_QuickFixEngineering, which lists Windows component updates. It doesn’t show everything: Defender definition updates, Microsoft Store apps and some .NET or Office updates don’t appear. For those, check Settings → Windows Update → Update history, or your patch management tool (WSUS, Intune, Azure Update Manager).

The old wmic qfe list command does the same job, but WMIC is deprecated and no longer installed by default on recent Windows versions, so use PowerShell instead.

Tip: which PowerShell version is installed?

$PSVersionTable.PSVersion

Windows PowerShell 5.1 ships with Windows. PowerShell 7 is installed separately and runs side by side as pwsh.