(plugin) apps::microsoft::wsus::local - mode computers-status fix (#3991)
This commit is contained in:
parent
d4fe70dac6
commit
8753691e11
|
@ -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 = @{
|
||||
|
|
Loading…
Reference in New Issue