PoshWSUS
PoshWSUS copied to clipboard
Duplicated output
This script produces 4 lines of output for each item:
$computers = Get-PSWSUSClient -IncludedInstallationState failed -IncludeDownstreamComputerTargets ; $failed += foreach ($computer in $computers) { Get-PSWSUSUpdatePerClient $computer -UpdateScope (New-PSWSUSUpdateScope -IncludedInstallationStates Failed) } ; $failed | sort ComputerName,UpdateKB | ft -auto
I have dealt with it by using the -unique parameter for sort, but it seems peculiar.