Skip to content

Commit

Permalink
Merge pull request #2126 from microsoft/dpaul-HcTools
Browse files Browse the repository at this point in the history
Allow other features to work from a tools box
  • Loading branch information
dpaulson45 authored Jul 25, 2024
2 parents bb6610b + 9ddd373 commit 8d1a022
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function Invoke-ConfirmExchangeShell {

if ($Script:ExchangeShellComputer.ToolsOnly -and
$Script:ServerNameList.ToLower().Contains($env:COMPUTERNAME.ToLower()) -and
-not ($LoadBalancingReport)) {
($PSCmdlet.ParameterSetName -eq "HealthChecker" -or
$PSCmdlet.ParameterSetName -eq "MailboxReport")) {
Write-Warning "Can't run Exchange Health Checker Against a Tools Server. Use the -Server Parameter and provide the server you want to run the script against."
$Script:Logger.PreventLogCleanup = $true
exit
Expand Down

0 comments on commit 8d1a022

Please sign in to comment.