Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated output #64

Open
KurtBuff opened this issue Mar 11, 2021 · 0 comments
Open

Duplicated output #64

KurtBuff opened this issue Mar 11, 2021 · 0 comments

Comments

@KurtBuff
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant