Solved

Move receive connectors from EX2007 to Ex2013 - powershell - Powershell Version problems?

Posted on 2016-09-23
2
32 Views
Last Modified: 2016-10-01
hi Folks,
the script below should move the receive connectors from 2007 to 2013. Unfortunately i'm getting erros with Syntax.
Get-receiveconnector isn't a cmdlet........  How could i use that under Exchange 2013?


$OldServer = "srv02"
$NewServer = "srv03" 
[array]$ReceiveConnectors = Get-ReceiveConnector -Server $OldServer | Where {$_.Name -notlike "Default $($OldServer)" -and $_.Name -notlike "Client $($OldServer)"}
 
$ReceiveConnectors | foreach {

New-ReceiveConnector –TransportRole FrontEnd -Name $_.Name -RemoteIPRanges $_.RemoteIPRanges -bindings$_.Bindings -Banner $_.Banner -ChunkingEnabled $_.ChunkingEnabled -DefaultDomain$_.DefaultDomain -DeliveryStatusNotificationEnabled $_.DeliveryStatusNotificationEnabled-EightBitMimeEnabled $_.EightBitMimeEnabled -DomainSecureEnabled $_.DomainSecureEnabled-LongAddressesEnabled $_.LongAddressesEnabled -OrarEnabled $_.OrarEnabled -Comment$_.Comment -Enabled $_.Enabled -ConnectionTimeout $_.ConnectionTimeout -ConnectionInactivityTimeout $_.ConnectionInactivityTimeout -MessageRateLimit$_.MessageRateLimit -MaxInboundConnection $_.MaxInboundConnection -MaxInboundConnectionPerSource $_.MaxInboundConnectionPerSource -MaxInboundConnectionPercentagePerSource $_.MaxInboundConnectionPercentagePerSource -MaxHeaderSize $_.MaxHeaderSize -MaxHopCount $_.MaxHopCount -MaxLocalHopCount$_.MaxLocalHopCount -MaxLogonFailures $_.MaxLogonFailures -MaxMessageSize$_.MaxMessageSize -MaxProtocolErrors $_.MaxProtocolErrors -MaxRecipientsPerMessage$_.MaxRecipientsPerMessage -PermissionGroups $_.PermissionGroups -PipeliningEnabled$_.PipeLiningEnabled -ProtocolLoggingLevel $_.ProtocolLoggingLevel -RequireEHLODomain$_.RequireEHLODomain -RequireTLS $_.RequireTLS -EnableAuthGSSAPI $_.EnableAuthGSSAPI -ExtendedProtectionPolicy $_.ExtendedProtectionPolicy $_.ExtendedProtectionTlsTerminatedAtProxy -SizeEnabled $_.SizeEnabled -TarpitInterval $_.TarpitInterval -Server $NewServer -WhatIf

}

Open in new window

0
Comment
Question by:Mandy_
2 Comments
 
LVL 14

Expert Comment

by:Schnell Solutions
ID: 41812414
Just in case....

Are you executing the commands from the Exchange server 2013 server (or a computer with the Exchange tools installed) and are you also using the 'Exchange Management Shell' (EMS) console? Powershell alone cannot execute these commands unless you import Exchange modules.
0
 
LVL 14

Accepted Solution

by:
Todd Nelson earned 500 total points
ID: 41812426
I get to do this often for clients.  Try this as it may apply to your situation...

https://oddytee.wordpress.com/2016/04/06/migrate-remote-ip-addresses-to-a-new-relay-connector/
0

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now