From 9b38ef408dc2467d14d0ce9d8e1228f071e212ee Mon Sep 17 00:00:00 2001 From: David Paulson Date: Wed, 19 Jul 2023 08:30:50 -0500 Subject: [PATCH] Make sure the return results is an array to allow .Count to work --- .../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 af9a4864c4..f7cd53a4a0 100644 --- a/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 +++ b/Security/src/ExchangeExtendedProtectionManagement/ExchangeExtendedProtectionManagement.ps1 @@ -493,7 +493,7 @@ begin { $counter = 0 $totalCount = $ExchangeServers.Count $outlookAnywhereCount = 0 - $outlookAnywhereServers = $ExchangeServersPrerequisitesCheckSettingsCheck | Where-Object { $_.IsClientAccessServer -eq $true } + $outlookAnywhereServers = @($ExchangeServersPrerequisitesCheckSettingsCheck | Where-Object { $_.IsClientAccessServer -eq $true }) $outlookAnywhereTotalCount = $outlookAnywhereServers.Count $progressParams = @{