Get the list of all Hotfix in multiple servers for specific time period

  • Create a text file (.txt) with the name "serverlist.txt" and mention all server's FQDN.
  • In this example, we will get the hotfix details from 1st August to 30th August 2022.
    • Note: The date in this script will be MM/DD/YYYY
$server = Get-Content .\serverlist.txtGet-Hotfix -ComputerName $server |
Where {
$_.InstalledOn -gt "8/1/2022" -AND $_.InstalledOn -lt "8/30/2022" } | Select-Object pscomputername,description,hotfixid,installedby,installedon |
Export-Csv August_Patch.csv

Comments