From 8753691e11b111acabd0a1e9e37bc5fa650356be Mon Sep 17 00:00:00 2001 From: qgarnier Date: Fri, 14 Oct 2022 11:56:35 +0200 Subject: [PATCH] (plugin) apps::microsoft::wsus::local - mode computers-status fix (#3991) --- .../centreon/common/powershell/wsus/computersstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = @{