Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Problem get multiple server output for check installed patches

$
0
0

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


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>