Skip to content

Duplicated output #64

@KurtBuff

Description

@KurtBuff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions