Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Test-ExchangeServerHealth.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,20 @@ else
}

### Check if any Exchange 2013 servers exist
if ($GetExchangeServerResults | Where-Object {$_.AdminDisplayVersion -like "Version 15.*"})
[bool]$HasE15 = $false
if ($GetExchangeServerResults -ne $null)
{
[bool]$HasE15 = $true
if ($GetExchangeServerResults | Where-Object {$_.AdminDisplayVersion -like "Version 15.*"})
{
[bool]$HasE15 = $true
}
}
else
{
if ($exchangeservers | Where-Object {$_.AdminDisplayVersion -like "Version 15.*"})
{
[bool]$HasE15 = $true
}
}

### Begin the Exchange Server health checks
Expand Down