Get-HotFix
Use Get-HotFix to list installed updates that were delivered as hotfix packages.
Documentation: Microsoft Learn — Get-HotFix
Syntax
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>]- Stage 1Get-HotFix
-Id -Description -ComputerName -Credential
Try it
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.
Follow the objects
Run the command to inspect each stage.
Examples
Sort by 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
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"
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
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.
Recap
Get-HotFix Use Get-HotFix to list installed updates that were delivered as hotfix packages.
Next: Get-InstalledModule