(plugin) apps::microsoft::wsus::local - mode computers-status fix (#3991)

This commit is contained in:
qgarnier 2022-10-14 11:56:35 +02:00 committed by GitHub
parent d4fe70dac6
commit 8753691e11
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ Try {
$computerTargetScopeUnassigned = new-object Microsoft.UpdateServices.Administration.ComputerTargetScope
$computerTargetScopeUnassigned.IncludeDownstreamComputerTargets = $true
$group = $wsusObject.GetComputerTargetGroups() | ? {$_.Name -like "Unassigned Computers"}
$computerTargetScopeUnassigned.ComputerTargetGroups.Add($group)
$computerTargetScopeUnassigned.ComputerTargetGroups.Add($group) >$null
$unassignedComputersCount = $wsusObject.GetComputerTargetCount($computerTargetScopeUnassigned)
$item = @{