From 801c3ecce77ce7a44d9ec817aa9e9a9d77f926d7 Mon Sep 17 00:00:00 2001 From: Thomas Stensitzki Date: Mon, 26 Mar 2018 21:49:04 +0200 Subject: [PATCH] Issue #3 fixed Close #3 --- Copy-ReceiveConnector.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Copy-ReceiveConnector.ps1 b/Copy-ReceiveConnector.ps1 index ac3ea4c..49f0dcf 100644 --- a/Copy-ReceiveConnector.ps1 +++ b/Copy-ReceiveConnector.ps1 @@ -7,7 +7,7 @@ THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER. - Version 1.5, 2017-11-11 + Version 1.6, 2018-03-26 Please send ideas, comments and suggestions to support@granikos.eu @@ -33,7 +33,8 @@ 1.3 Update receive connector, if receive connector exists 1.4 Fix to handle connector updates properly 1.41 Minor fixes and update for Exchange 2016 - 1.5 Issued #2 fixed + 1.5 Issue #2 fixed + 1.6 Issue #3 fixed .PARAMETER ConnectorName Name of the connector the new IP addresses should be added to @@ -289,9 +290,10 @@ function Copy-ToServer { } function Copy-ToAllServers { - Write-Verbose 'Copy receive connector to all other Exchange 2013 servers' + Write-Verbose 'Copy receive connector to all other Exchange 2013+ servers' - $frontendServers = Get-ExchangeServer | Where-Object{($_.AdminDisplayVersion.Major -eq 15) -and (([string]$_.ServerRole).Contains('ClientAccess')) -and ($_.Name -ne $SourceServer)} | Sort-Object Name + # Quick fix for issue #3, assuming that you've deployed Exchange 2013 multi-role + $frontendServers = Get-ExchangeServer | Where-Object{($_.AdminDisplayVersion.Major -eq 15) -and (([string]$_.ServerRole).Contains('Mailbox')) -and ($_.Name -ne $SourceServer)} | Sort-Object Name foreach($server in $frontendServers){ Write-Output -InputObject ('Working on server: {0}' -f $server)