diff --git a/centreon-plugins/centreon/common/powershell/wsus/computersstatus.pm b/centreon-plugins/centreon/common/powershell/wsus/computersstatus.pm index 2a5cf53be..e9a063674 100644 --- a/centreon-plugins/centreon/common/powershell/wsus/computersstatus.pm +++ b/centreon-plugins/centreon/common/powershell/wsus/computersstatus.pm @@ -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 = @{