PowerTip: Use PowerShell to Find Installed Hotfixes

PowerTip: Use PowerShell to Find Installed Hotfixes

  • Comments 4
  • Likes

Summary: Use Windows PowerShell to find hotfixes installed on your computer.

Hey, Scripting Guy! Question How can I use Windows PowerShell to see hotfixes that were installed on my computer after November 1, 2013?

Hey, Scripting Guy! Answer Use the Get-Hotfix cmdlet, pipe the results to Where-Object, and then filter on the date:

Get-HotFix | where InstalledOn -ge ([datetime]"11/1/2013")

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Oh, thanks for sharing

  • Helps for inventory before and after patch update - :)

  • my twist:

    # check local machine for installed Windows updates in the last 6 months
    get-hotfix | Where-Object {$_.installedon -gt (get-date).addmonths(-6)} | Sort-Object -property installedOn -Descending

  • To find a particular hotfix, for example KB 000000, use Get-Hotfix | where {$_.HotFixId -like "KB000000"}