PowerShell Scripts, Tips, Expert Advices, Forums, and Resources

image rotation

Welcome to PowerShell.com, the educational and community site for Windows PowerShell People. Get a quick overview.


As a Powershell.com member you will have access to:

  • Daily PowerShell tips written by Microsoft MVPs and other leading Windows PowerShell experts
  • Free Windows PowerShell advice and training provided by Microsoft MVPs and other leading Windows PowerShell experts
  • Access to leading Windows PowerShell blogs
  • A free ebook, Mastering PowerShell, written by Microsoft MVP Dr. Tobias Weltner
PowerTip of the Day

Filtering Hotfix Information

All PowerShell Versions

Get-HotFix is a built-in cmdlet that returns the installed hotfixes. It has no parameter to filter on hotfix ID, though.

With a cmdlet filter, you can easily focus on the hotfixes you are after. This example returns only hotfixes with an ID that starts with "KB25":

Get-HotFix |
  Where-Object { 
    $_.HotfixID -like 'KB25*'  
  }

Note that Get-HotFix has a parameter -ComputerName, so assuming you have the appropriate permissions, you can retrieve hotfix information from a remote computer as well.

Twitter This Tip! ReTweet this Tip!

Copyright 2012 PowerShell.com. All rights reserved.