The detection cmdlet (line 265) for 2013 servers has mistake it it:
$ExchangeServers = Get-ExchangeServer | ? {$.AdminDisplayVersion -match "15.2" -and -not ($.ServerRole -match "Edge")}
Should be "15.0" for 2013.
I realize Exchange 2013 is mostly deprecated but your script/tool still includes it.
The detection cmdlet (line 265) for 2013 servers has mistake it it:
Should be "15.0" for 2013.
I realize Exchange 2013 is mostly deprecated but your script/tool still includes it.