PowerTip: Use PowerShell to Find Installed Hotfixes

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")

Comments (4)

  1. Jason Warren says:

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

  2. n1ckml007 says:

    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

  3. Chen V says:

    Helps for inventory before and after patch update – 🙂

Skip to main content