Windows Server 2012 R2 powershell script to generate report for installed Hotfix-Update for Bulk Servers

===============================================================

function Hotfixreport {
$computers = Get-Content C:\serversHF.txt
$ErrorActionPreference = ‘Stop’
ForEach ($computer in $computers) {

try
{
Get-HotFix -cn $computer | Select-Object PSComputerName,HotFixID,Description,InstalledBy,InstalledOn | FT -AutoSize

}

catch

{
Write-Warning “System Not reachable:$computer”
}
}

}
Hotfixreport > “$env:USERPROFILE\Desktop\Hotfixreport.csv”

==============================================================