PowerShell Genie

Get-HotFix

Use Get-HotFix to list installed updates that were delivered as hotfix packages.

Command 1 min read PowerShell 7 on Windows

Documentation: Microsoft Learn — Get-HotFix

Syntax

1PS> Get-HotFix [[-Id] <string[]>] [-Description <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>] [<CommonParameters>]
See the command anatomy

Read the command and its supplied arguments. This example requires real PowerShell or its module; this diagram does not execute it.

Get-HotFix [[-Id] <string[]>] [-Description <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>] [<CommonParameters>]
  1. Stage 1Get-HotFix-Id -Description -ComputerName -Credential

    Try it

    Windows PowerShell

    PowerShell example · browser support is limited.

    Execution scope: The full example below requires PowerShell outside this browser. You can edit this runner to use the supported practice commands; unsupported syntax returns an explanation.

    Interactive simulation · fictional data

    Examples

    Sort by InstalledOn

    1PS> Get-HotFix | Sort-Object InstalledOn -Descending | Select-Object -First 5 HotFixID, InstalledOn
    Show reference output

    Sample output · fictional data, shaped like the real thing

    HotFixID   InstalledOn
    ---------  -----------
    KB5039217  9/6/2026
    KB5040442  8/28/2026

    Get-HotFix -Id KB5000802

    1PS> Get-HotFix -Id KB5000802 -ErrorAction SilentlyContinue
    Show reference output

    Sample output · fictional data, shaped like the real thing

    Source        Description      HotFixID   InstalledOn
    ------        -----------      --------   -----------
    SERVER01      Security Update  KB5000802  3/9/2021 12:00:00 AM

    Get-HotFix -Description "Security Update"

    1PS> Get-HotFix -Description "Security Update" | Measure-Object
    Show reference output

    Sample output · fictional data, shaped like the real thing

    Count    : 2
    Average  :
    Sum      :
    Maximum  :
    Minimum  :
    Property :

    Parameters

    Parameter definitions:

    • -Id
    • -Description
    • -ComputerName
    • -Credential

    Get-HotFix on Microsoft Learn

    Practical use and troubleshooting

    Practical scenario: Use Get-HotFix when you need to list installed updates that were delivered as hotfix packages. Review syntax and sample output, then try an example in the browser lab. Start with one identified target and inspect the returned values before extending the operation to a list. Keep the identity in your report so you can trace each result back to the object or path that produced it.

    Common error and fix: A missing KB in this query does not conclusively prove the update is absent. Check the relevant update history or management system and confirm that the update type is exposed by this provider. In an unattended script, capture this failure with its original error record and record which target failed. An empty result and an unsuccessful query must remain distinguishable in the final report.

    See also: Get-ComputerInfo. Get-HotFix queries installed updates exposed by Win32_QuickFixEngineering; Get-ComputerInfo returns broader computer information. Get-HotFix is not an exhaustive inventory of every update mechanism. Read the linked command before substituting it; similar names do not imply identical inputs or output.

    Get-HotFix reference on Microsoft Learn

    Recap

    Get-HotFix Use Get-HotFix to list installed updates that were delivered as hotfix packages.

    Next: Get-InstalledModule
    Genie guideGet-HotFix

    Use Get-HotFix to list installed updates that were delivered as hotfix packages. The console below is pre-loaded — run it, then change a value and run it again.