diff --git a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 index 49cc2b6a2..b5cd8348d 100644 --- a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 +++ b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 @@ -84,6 +84,7 @@ function Invoke-AnalyzerExchangeInformation { } $extendedSupportDate = $exchangeInformation.BuildInformation.VersionInformation.ExtendedSupportDate + $exchangeFriendlyName = $exchangeInformation.BuildInformation.VersionInformation.FriendlyName if ($extendedSupportDate -le ([DateTime]::Now.AddYears(1))) { $displayWriteType = "Yellow" @@ -91,8 +92,12 @@ function Invoke-AnalyzerExchangeInformation { $displayWriteType = "Red" } - $displayValue = "$($exchangeInformation.BuildInformation.VersionInformation.ExtendedSupportDate.ToString("MMM dd, yyyy", - [System.Globalization.CultureInfo]::CreateSpecificCulture("en-US"))) - Please note of the End Of Life date and plan to migrate soon." + if (($exchangeFriendlyName -match '2010|2013|2016|2019')) { + $displayValue = "$($exchangeInformation.BuildInformation.VersionInformation.ExtendedSupportDate.ToString("MMM dd, yyyy", + [System.Globalization.CultureInfo]::CreateSpecificCulture("en-US"))) - Please note the End Of Life date. Reference our blog for more information: https://aka.ms/HC-UpgradeToSE" + } else { + $displayValue = "Please note the End Of Life date and plan your migration accordingly." + } if ($extendedSupportDate -le ([DateTime]::Now)) { $displayValue = "Error: Your Exchange server reached end of life on " + @@ -146,7 +151,7 @@ function Invoke-AnalyzerExchangeInformation { foreach ($kbInfo in $exchangeInformation.BuildInformation.KBsInstalledInfo) { $kbName = $kbInfo.PackageName $params = $baseParams + @{ - Details = "$kbName - Installed on $($kbInfo.InstalledDate)" + Details = "$kbName" DisplayCustomTabNumber = 2 TestingName = "Exchange IU" }