From 2079571a44963bea9afe8232f1fb9026fe90994c Mon Sep 17 00:00:00 2001 From: David Paulson Date: Mon, 31 Jul 2023 13:31:36 -0500 Subject: [PATCH] Set object type to array so .Count works --- .../ExchangeExtendedProtectionManagement.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 b/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 index f7cd53a4a0..edfc3c6486 100644 --- a/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 +++ b/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 @@ -491,7 +491,7 @@ begin { $rpcNullServers = New-Object 'System.Collections.Generic.List[string]' $canNotConfigure = "Therefore, we can not configure Extended Protection." $counter = 0 - $totalCount = $ExchangeServers.Count + $totalCount = @($ExchangeServers).Count $outlookAnywhereCount = 0 $outlookAnywhereServers = @($ExchangeServersPrerequisitesCheckSettingsCheck | Where-Object { $_.IsClientAccessServer -eq $true }) $outlookAnywhereTotalCount = $outlookAnywhereServers.Count