From 0cb89e4be790ee65575c50ca3240fabf654fe953 Mon Sep 17 00:00:00 2001 From: David Paulson Date: Mon, 24 Jun 2024 12:57:17 -0500 Subject: [PATCH] Add additional information to let admins know how to get the service display name --- .../Analyzer/Invoke-AnalyzerExchangeInformation.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 index 705a938006..645d44bed6 100644 --- a/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 +++ b/Diagnostics/HealthChecker/Analyzer/Invoke-AnalyzerExchangeInformation.ps1 @@ -461,6 +461,17 @@ function Invoke-AnalyzerExchangeInformation { Add-AnalyzedResultInformation @params } } + + if ($exchangeInformation.DependentServices.Critical.Count -gt 0 -or + $exchangeInformation.DependentServices.Common.Count -gt 0 -or + $exchangeInformation.DependentServices.Misconfigured.Count -gt 0) { + $params = $baseParams + @{ + Details = "To determine what the display name of the service that is not properly configured or running, run 'Get-Service ' to get more information." + DisplayCustomTabNumber = 2 + DisplayWriteType = "Yellow" + } + Add-AnalyzedResultInformation @params + } } if ($exchangeInformation.GetExchangeServer.IsEdgeServer -eq $false -and