From 66d7b670f9e4677f613733eac71e26fcaf4e1f53 Mon Sep 17 00:00:00 2001 From: Technion Date: Wed, 7 Apr 2021 22:28:17 +1000 Subject: [PATCH] Fix Exchange versions on UM mitigation --- Security/src/ExchangeMitigations.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Security/src/ExchangeMitigations.ps1 b/Security/src/ExchangeMitigations.ps1 index ea7b3bf48f..a5d5c0ae7b 100644 --- a/Security/src/ExchangeMitigations.ps1 +++ b/Security/src/ExchangeMitigations.ps1 @@ -434,7 +434,8 @@ Function UnifiedMessagingMitigation { # UM doesn't apply to Exchange Server 2019 $exchangeVersion = (Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\Setup\') - if ($exchangeVersion.OwaVersion -notlike "15.0.*") { + if ($exchangeVersion.OwaVersion -notmatch "15\.[01]") { + Write-Verbose "[INFO] Skipping UM Mitigation for Exchange 2019" return }