Hi,
I get the Power shell script from online and it able to show the latest pacthes installed in server but unable shows multiple servers result.
Can anyone help me to make the script, shows multiple server result please.
$Computers = "Computers.txt"
$ComputerNames = Get-Content $Computers
$Results = @()
ForEach ($Computer in $ComputerNames){
$Results += Get-WmiObject -Class Win32_QuickFixEngineering -ComputerName $Computer | Where-Object { $_.InstalledOn -gt ((Get-Date -Day 01).AddMonths(0)).AddDays(0) }
}
$Results | Select PSComputerName,Description,HotFixID,InstalledOn | Out-File "Query-Updates.txt" -Append
Thanks in advanced.
Regards,
Jamal